Skip to content

JSCallbackOverload structure

Holds overload resolution information (parameter types) for one of multiple overloads for a .NET method.

C#
public struct JSCallbackOverload

Public Members

namedescription
JSCallbackOverload(…)(2 constructors)
static Resolve(…)Selects one of multiple callback overloads by finding the best match of the supplied arguments to method parameter counts and types.
Callback { get; }Callback that expects JS arguments that are convertible to the specified parameter types.
DefaultValues { get; }Array of default parameter values for this overload, or null if none of the parameters have default values.
ParameterTypes { get; }Specifies the number of parameters and the .NET type that each JS argument will be converted to before invoking the callback.
static CreateDescriptor(…)Creates a callback descriptor for a set of method overloads. (2 methods)

See Also

Released under the MIT license