System.Reflection.BindingFlags.OptionalParamBinding Field

Returns the set of members whose parameter count matches the number of supplied arguments. This binding flag is used for methods with parameters that have default values and methods with variable arguments (varargs). This flag should only be used with Type.InvokeMember(string, BindingFlags, Binder, object, Object[], ParameterModifier[], System.Globalization.CultureInfo, String[]).

Value: OptionalParamBinding

Syntax

BindingFlags OptionalParamBinding

Remarks

Parameters with default values are used only in calls where trailing arguments are omitted. They must be the last arguments.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0