Skip to content

JSCallbackOverload.DefaultValues property

Array of default parameter values for this overload, or null if none of the parameters have default values.

C#
public object?[]? DefaultValues { get; }

Remarks

Defaults are always at the end of the list of parameters, so if a method has 2 default parameters then this array length would be 2. Therfore, the indexes in this array are offset from the ParameterTypes array by the number of non-default parameters.

See Also

Released under the MIT license