George George

George George

  • NA
  • 778
  • 0

passing by reference v.s. passing by value

Sep 28 2008 5:24 AM

Hello everyone,


Supposing I am writng a web services client using managed code. My question is what is the differences between passing by value and passing by reference, when we pass parameter to a web services web method call?

My confusion is, in traditional senses, passing by reference means passing only a pointer, and modification is impacted on the original object. Passing by value means passing a new copy of original object, and modification is not impacted on the original object. -- But for web services, no matter pass by value or pass by reference of an object, I think it is always made a new copy and not pointer across the network to web services server (since pointer address is only meaningful for local process on local machine)?

What is the actual differnces between passing by reference and passing by value when making a web services call?


thanks in advance,
George


Answers (4)