Indicates the missing value in the type information. The field is read-only.
UseMissingThe field is called through reflection to obtain the default value of the parameter. If you specifyMissingField, and the parameter does not have the default value, an exception is thrown.
Type. Missing is defined:
Public static readonly object missing;
This field is initialized in the type class constructor,CodeIs:
Type. Missing = missing. value;
system. reflection. the missing class is defined as:
Public sealed class missing
{< br> static missing () {missing. value = new missing () ;}< br> internal missing ();
Public static readonly missing value;
}< br> therefore, they are equivalent, all are system. reflection. missing type.
although type. missing is defined as an object, but in the static constructor of the type class, system. reflection. missing. value is assigned to it, So type. the missing type is changed to system. reflecton. missing.
you can run the following code for detection:
MessageBox. show (system. reflection. missing. value. getType (). tostring ();
MessageBox. show (system. type. missing. getType (). tostring ();