11 references to ParameterKind
Microsoft.AspNetCore.Components.Web (11)
JSComponents\JSComponentInterop.cs (11)
104
ParameterKind
.Value => JsonSerializer.Deserialize(
108
ParameterKind
.EventCallbackWithNoParameters => CreateEventCallbackWithNoParameters(
110
ParameterKind
.EventCallbackWithSingleParameter => CreateEventCallbackWithSingleParameter(
113
var x => throw new InvalidOperationException($"Invalid {nameof(
ParameterKind
)} '{x}'.")
163
is
ParameterKind
.EventCallbackWithNoParameters
164
or
ParameterKind
.EventCallbackWithSingleParameter;
166
private static
ParameterKind
GetParameterKind(Type type)
169
var x when x == typeof(EventCallback) =>
ParameterKind
.EventCallbackWithNoParameters,
170
var x when x.IsGenericType && x.GetGenericTypeDefinition() == typeof(EventCallback<>) =>
ParameterKind
.EventCallbackWithSingleParameter,
171
_ =>
ParameterKind
.Value,
224
public readonly
ParameterKind
Kind { get; }