out and ref parameters for void method [C#]


 Yes we can use the out parameter for method type of void.it won't give any compilation errors.Because it out and ref parameters doesn't depend on return type of the method.

No comments:

Post a Comment