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

Explain the feature of c# language?

576


What is string pool in c#?

638


What is the difference between icomparer and icomparable in c#?

545


How to create events for a control? What is custom events? How to create it?

625


How does return work in c#?

604






What is the difference between static class and singleton class in c#?

569


What is a shared assembly?

633


Is arraylist type safe in c#?

600


What are namespaces, and how they are used?

650


Why should I use interface in c#?

597


Can I do things in il that I can't do in c#?

605


How long does it take to learn c# programming?

552


Explain the use of SN.exe

699


What does mean before a string in c#?

596


Why to use “finally” block in c#?

624