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
Explain the feature of c# language?
What is string pool in c#?
What is the difference between icomparer and icomparable in c#?
How to create events for a control? What is custom events? How to create it?
How does return work in c#?
What is the difference between static class and singleton class in c#?
What is a shared assembly?
Is arraylist type safe in c#?
What are namespaces, and how they are used?
Why should I use interface in c#?
Can I do things in il that I can't do in c#?
How long does it take to learn c# programming?
Explain the use of SN.exe
What does mean before a string in c#?
Why to use “finally” block in c#?