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
Explain how can I get around scope problems in a try/catch?
What is private and shared assembly?
Which is the base class in c#?
Can we inherit abstract class in c#?
What is the difference between integer and double?
What is use of abstract class in c#?
Can firstordefault return null?
How to find the current application file path while runtime?
What are the benefits of using generics?
What is an Interface in C#?
How many bytes is a char c#?
Why do we use static methods in c#?
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
What is hashtable c#?
Can a method return multiple values in c#?