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.

Sizin İçin Seçtik  TL neden eriyor?

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

Sizin İçin Seçtik  How do I download a Udemy course to my computer?

Leave a Reply

Your email address will not be published. Required fields are marked *