What is the difference between ref & out parameters?
Answer Posted / padam
An argument passed as ref must be initialized before passing
to the method whereas out parameter needs not to be
initialized before passing to a method.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What happens when thread sleep () method is called?
What is the difference between package and interface?
When should we use sealed class in c#?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
What is the use of delegates in c#?
Why do we use interfaces in c#?
Does google use c#?
Why delegates are type safe in c#?
How do destructors and garbage collection work in c#?
What do you mean by the delegate in c#?
Why data types are important?
What is returned if you pass the value 12.34 to the parsefloat () function?
When is a class declared as a class abstract?
Please explain value types and reference types used in c#?
What is the difference between list and arraylist c#?