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 dynamic dispatch?

546


My switch statement works differently! Why?

509


Why do we need generics in c#?

504


Can we override static class in c#?

475


1. Describe page life cycle?

1574






What are indexers in c# .net?

518


Can we inherit class that contains only one private constructor?

509


What is a dimensional array?

458


Can we extend sealed class in c#?

485


Can we change static variable value in c#?

483


How does c# achieve polymorphism?

466


Can abstract class have parameterized constructor?

494


Do events have return type c#?

499


Define a class and an object?

554


What is the lock statement in c#?

521