what is the difference between passing a value object by
reference and a reference object by value?
Answer Posted / ashish diwakar
..........For above example..............
Well I skip to add .ToString in my above answer.
We can not pass Reference type objects directly to a method.
So to pass value of sb variable we need to use following
code:
Display(sb.ToString());
..........For above example..............
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is it possible to inherit multiple interfaces?
What is datarelation c#?
What is meant by enumerable in c#?
What is difference between const and static in c#?
What is the difference between array and arraylist in c#?
Why do we need generics?
What is desktop application testing?
What does int32 mean in c#?
What is use of private class in c#?
Why hashtable is thread safe in c#?
Can constructor be private c#?
What is the use of console application in c#?
What are virtual destructors?
In a single .NET DLL how many classes it contains?
How does dependency injection work c#?