4
Answers

passing by reference v.s. passing by value

Ask a question
George George

George George

16y
4.6k
1

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)