C# Out ParameterC# provides out keyword to pass arguments as out-type. It is like reference-type, except that it does not require variable to initialize before passing. We must use out keyword to pass argument as out-type. It is useful when we want a function to return multiple values. C# Out Parameter Example 1Output: Value before passing out variable 50 Value after receiving the out variable 25 The following example demonstrates that how a function can return multiple values. C# Out Parameter Example 2Output: Value before passing val1 = 50 val2 = 100 Value after passing val1 = 25 val2 = 25 Next TopicC# Arrays |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India