Skip to content

JSCallbackOverload.Resolve method ​

Selects one of multiple callback overloads by finding the best match of the supplied arguments to method parameter counts and types.

C#
public static JSCallbackOverload Resolve(IReadOnlyList<JSCallbackOverload> overloads, 
    JSCallbackArgs args)
parameterdescription
overloadsList of overloads to be matched.
argsCallback arguments that will be matched against overload parameter counts and types.

Return Value ​

Callback for the resolved overload.

Exceptions ​

exceptioncondition
JSExceptionNo overload or multiple overloads were found for the supplied arguments.

See Also ​

Released under the MIT license