what is the difference between passing a value object by
reference and a reference object by value?
Answer Posted / c
When you pass object by reference to any method, you are
passing reference (base pointer) to method. Any changes
done on this object will get reflected in object in caller.
When you pass any object by value, you are passing copy of
the object and not the reference.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Can hashtable have duplicate keys in c#?
What is a struct in C#?
What are the 3 elements of delegation?
Can I call a virtual method from a constructor/destructor?
What are properties in c#. Explain with an example?
What does string format do?
Is c# the same as d flat?
what is IComparable
Why do we use generics in c#?
What is web forms in c#?
Explain the difference between .net and c#?
Is c# substring zero based?
Differentiate between dataset and datareader?
Do we get an error while executing the “finally” block in c#?
Give some examples for built in datatypes in c#?