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
Can we inherit static class in c#?
Explain publishers and subscribers in events.
What is void method?
What is the default value of decimal in c#?
What is the difference between finalize() and dispose()?
What is the difference between serialization and deserialization in c#?
What does firstordefault mean in c#?
How to use delegates with events?
update data in an xml file which resides in solution itself, using silverlight 4.0
What is an escape sequence? Name some string escape sequences in c#.
What is type class in c#?
What is expression c#?
Why is lazy loading?
Is datetime nullable c#?
What is parsing? How to parse a date time string?