What is the difference between ref & out parameters?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / satya
ref keyword is used while passing the parameters by reference.
out keyword is used while passing the parameters by out
Is This Answer Correct ? | 0 Yes | 1 No |
What is the difference between first and firstordefault?
Difference between value and reference type.
What is disco?
What is the difference between finalize() and dispose() methods?
Do unused Namespaces in c# affect run-time performance?
What is the difference between method and function in c#?
what is unit testing
Define multicast c# delegate?
How can an inner class access the members of outer class?
What is instantiating a class?
What does mean c#?
Wats the diff between sealed class and private class in inheritance