Friday, September 03, 2004

Missing Class

Namespace: System.Reflection

Remarks: Represents a missing Object. This class cannot be inherited. Missing is used to invoke a method with a default argument. Only one instance of Missing ever exists.

Now when will you use this? When you have to pass a variable by ref set it to Missing.Value this is comparable to passing null to the function. Necessary because the C# null cannot be passed by reference.

No comments: