what is the difference between passing a value object by
reference and a reference object by value?

Answer Posted / c

I am sorry ...above is not correct....actually to pass
reference type as value we need to use clonable/ copy
constructor ...otherwise in C# it is not possible to pass
object as value

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array class in c#?

536


What is web forms in c#?

581


Explain what is an interface in c#?

592


How can you use abstract class and interface?

614


What is ControlBox Propertie

663






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

826


Why reflection is used in c#?

589


What is autopostback in c#?

576


What is alias in c#?

636


What is strongly typed in c#?

574


Can you inherit from multiple classes in c#?

524


What does void do in unity?

595


what is the difference between .dll and .exe

615


What operators can be used to cast from one reference type to another without the risk of throwing an exception?

596


Does hashset allow duplicates c#?

605