What is the default parameter type in C#?

In C# by default we pass the parameter by value also known as value parameter . But a parameter also can be passed by reference. To pass an argument with reference we need to use “ref” keyword. If any argument passed as reference then any change to the parameter in the called method is reflected in the calling method.

Sizin İçin Seçtik  What are optional parameters in API?

Leave a Reply

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

What is the default parameter type in C#?

In C# by default we pass the parameter by value also known as value parameter . But a parameter also can be passed by reference. To pass an argument with reference we need to use “ref” keyword. If any argument passed as reference then any change to the parameter in the called method is reflected in the calling method.

Sizin İçin Seçtik  Telefondan araç takibi nasıl yapılır?

Leave a Reply

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