Ref keyword in remoting

Posts   
 
    
Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 11-May-2006 06:34:57   

For those of you that use remoting when you pass an entity to the server and the server does some processing on it, how do you get the entity back?

Do you return the entity from the function call? or do you use the ref keyword.

It seems to be the ref keyword would be better as it otherwise you would have to try and merge the results back into the original entity on the client. From my understanding, by using the ref keyword, any changes i make to that entity will automatically be reflected on the client?? Or am i off on this one smile

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 11-May-2006 08:08:18   

I think it's better to use the ref/out Keywords.