What do you mean by 'out' modifier in C# programming language?

 Posted by Goud.Kv on 9/3/2014 | Category: C# Interview questions | Views: 1725 | Points: 40

out is a C# modifier used in two scenarios.

1. Used as a parameter modifier.
2. Used in the declaration of generic types in delegates and interfaces.

It must be assigned just before it comes out from a method and no need to assign before entering into a method.

Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response