ParameterInfo.IsOptional Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets a value indicating whether this parameter is optional.
Assembly: mscorlib (in mscorlib.dll)
This method depends on an optional metadata flag. This flag can be inserted by compilers, but compilers are not obligated to do so.
This method uses the Optional member of the ParameterAttributes enumeration.
To get the ParameterInfo array, first get the method, and then call MethodBase.GetParameters.