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


Please Help Members By Posting Answers For Below Questions

If I want to override a method one of class A and in class b then how do you declare?

930


What do you mean by object pooling?

704


Give an example of removing an element from the queue?

665


What is returned if you pass the value 12.34 to the parsefloat () function?

695


Is c# lazy thread safe?

670


What is difference between === and ==?

642


What are delegates in C#?

749


How do I format in c#?

649


What is difference between dictionary and list in c#?

666


Is it possible to have a static indexer in c#? Allowed in c#.

708


What is global asax in c#?

712


What is an object and a class?

741


What are most desktop applications written in?

661


What is console application with example?

679


How do you pronounce c#?

673