Can out parameter have default value?

The value of an out argument will not be passed to the out parameter. A variable passed as an out argument need not be initialized. However, the out parameter must be assigned a value before the method returns. Compiler will not allow you to use out parameter as default parameter because it is violating its use case.

Read more

Can out parameter have default value?

The value of an out argument will not be passed to the out parameter. A variable passed as an out argument need not be initialized. However, the out parameter must be assigned a value before the method returns. Compiler will not allow you to use out parameter as default parameter because it is violating its use case.

Read more