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 |