44 instantiations of ChangeEventArgs
Microsoft.AspNetCore.Components.Tests (40)
EventCallbackFactoryBinderExtensionsTest.cs (33)
23
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "not-an-integer!", });
40
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = string.Empty, });
58
return binder.InvokeAsync(new
ChangeEventArgs
() { Value = "18", });
75
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "not-an-integer!", });
92
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "", });
111
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue, });
130
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = true, });
149
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = true, });
168
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
187
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
206
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
225
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
244
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
263
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
282
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
301
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
320
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
339
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42", });
358
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(), });
377
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(), });
396
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(CultureInfo.CurrentCulture), });
415
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(CultureInfo.CurrentCulture), });
435
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(format, CultureInfo.InvariantCulture), });
455
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(format, CultureInfo.InvariantCulture), });
474
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(CultureInfo.CurrentCulture), });
493
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(CultureInfo.CurrentCulture), });
513
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(format, CultureInfo.InvariantCulture), });
533
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(format, CultureInfo.InvariantCulture), });
553
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(), });
573
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(), });
592
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = expectedValue.ToString(), });
627
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42 000,00", });
646
await binder.InvokeAsync(new
ChangeEventArgs
() { Value = "42,000.00", });
RendererTest.cs (7)
3094
var eventArgs = new
ChangeEventArgs
{ Value = true };
3136
var eventArgs = new
ChangeEventArgs
{ Value = "hello" };
3175
var eventArgs = new
ChangeEventArgs
{ Value = "hello" };
3215
var eventArgs = new
ChangeEventArgs
{ Value = "hello" };
3255
var eventArgs = new
ChangeEventArgs
{ Value = "hello" };
4344
var dispatchEventTask = renderer.DispatchEventAsync(eventHandlerId, eventFieldInfo, new
ChangeEventArgs
4396
var dispatchEventTask = renderer.DispatchEventAsync(eventHandlerId, fieldInfo, new
ChangeEventArgs
Microsoft.AspNetCore.Components.Web (1)
WebEventData\ChangeEventArgsReader.cs (1)
16
var changeArgs = new
ChangeEventArgs
();
Microsoft.AspNetCore.Components.Web.Tests (3)
WebEventData\ChangeEventArgsReaderTest.cs (3)
16
var args = new
ChangeEventArgs
33
var args = new
ChangeEventArgs
50
var args = new
ChangeEventArgs
108 references to ChangeEventArgs
Microsoft.AspNetCore.Components (82)
EventCallbackFactoryBinderExtensions.cs (76)
35
public static EventCallback<
ChangeEventArgs
> CreateBinder(
55
public static EventCallback<
ChangeEventArgs
> CreateBinder(
75
public static EventCallback<
ChangeEventArgs
> CreateBinder(
95
public static EventCallback<
ChangeEventArgs
> CreateBinder(
115
public static EventCallback<
ChangeEventArgs
> CreateBinder(
135
public static EventCallback<
ChangeEventArgs
> CreateBinder(
155
public static EventCallback<
ChangeEventArgs
> CreateBinder(
175
public static EventCallback<
ChangeEventArgs
> CreateBinder(
195
public static EventCallback<
ChangeEventArgs
> CreateBinder(
215
public static EventCallback<
ChangeEventArgs
> CreateBinder(
235
public static EventCallback<
ChangeEventArgs
> CreateBinder(
255
public static EventCallback<
ChangeEventArgs
> CreateBinder(
275
public static EventCallback<
ChangeEventArgs
> CreateBinder(
295
public static EventCallback<
ChangeEventArgs
> CreateBinder(
315
public static EventCallback<
ChangeEventArgs
> CreateBinder(
335
public static EventCallback<
ChangeEventArgs
> CreateBinder(
355
public static EventCallback<
ChangeEventArgs
> CreateBinder(
375
public static EventCallback<
ChangeEventArgs
> CreateBinder(
395
public static EventCallback<
ChangeEventArgs
> CreateBinder(
415
public static EventCallback<
ChangeEventArgs
> CreateBinder(
435
public static EventCallback<
ChangeEventArgs
> CreateBinder(
455
public static EventCallback<
ChangeEventArgs
> CreateBinder(
475
public static EventCallback<
ChangeEventArgs
> CreateBinder(
495
public static EventCallback<
ChangeEventArgs
> CreateBinder(
515
public static EventCallback<
ChangeEventArgs
> CreateBinder(
535
public static EventCallback<
ChangeEventArgs
> CreateBinder(
555
public static EventCallback<
ChangeEventArgs
> CreateBinder(
575
public static EventCallback<
ChangeEventArgs
> CreateBinder(
595
public static EventCallback<
ChangeEventArgs
> CreateBinder(
615
public static EventCallback<
ChangeEventArgs
> CreateBinder(
635
public static EventCallback<
ChangeEventArgs
> CreateBinder(
655
public static EventCallback<
ChangeEventArgs
> CreateBinder(
676
public static EventCallback<
ChangeEventArgs
> CreateBinder(
698
public static EventCallback<
ChangeEventArgs
> CreateBinder(
719
public static EventCallback<
ChangeEventArgs
> CreateBinder(
739
public static EventCallback<
ChangeEventArgs
> CreateBinder(
760
public static EventCallback<
ChangeEventArgs
> CreateBinder(
782
public static EventCallback<
ChangeEventArgs
> CreateBinder(
803
public static EventCallback<
ChangeEventArgs
> CreateBinder(
823
public static EventCallback<
ChangeEventArgs
> CreateBinder(
844
public static EventCallback<
ChangeEventArgs
> CreateBinder(
866
public static EventCallback<
ChangeEventArgs
> CreateBinder(
887
public static EventCallback<
ChangeEventArgs
> CreateBinder(
907
public static EventCallback<
ChangeEventArgs
> CreateBinder(
928
public static EventCallback<
ChangeEventArgs
> CreateBinder(
950
public static EventCallback<
ChangeEventArgs
> CreateBinder(
971
public static EventCallback<
ChangeEventArgs
> CreateBinder(
991
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1012
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1034
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1055
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1075
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1096
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1118
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1139
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1159
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1180
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1202
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1223
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1243
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1264
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1286
public static EventCallback<
ChangeEventArgs
> CreateBinder(
1308
public static EventCallback<
ChangeEventArgs
> CreateBinder<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
1329
public static EventCallback<
ChangeEventArgs
> CreateBinder<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(
1339
private static EventCallback<
ChangeEventArgs
> CreateBinderCore<T>(
1346
Action<
ChangeEventArgs
> callback = e =>
1379
return factory.Create<
ChangeEventArgs
>(receiver, callback);
1382
private static EventCallback<
ChangeEventArgs
> CreateBinderCoreAsync<T>(
1389
Func<
ChangeEventArgs
, Task> callback = async e =>
1422
return factory.Create<
ChangeEventArgs
>(receiver, callback);
1425
private static EventCallback<
ChangeEventArgs
> CreateBinderCore<T>(
1433
Action<
ChangeEventArgs
> callback = e =>
1466
return factory.Create<
ChangeEventArgs
>(receiver, callback);
1469
private static EventCallback<
ChangeEventArgs
> CreateBinderCoreAsync<T>(
1477
Func<
ChangeEventArgs
, Task> callback = async e =>
1510
return factory.Create<
ChangeEventArgs
>(receiver, callback);
EventCallbackFactoryEventArgsExtensions.cs (6)
49
public static EventCallback<
ChangeEventArgs
> Create(this EventCallbackFactory factory, object receiver, Action<
ChangeEventArgs
> callback)
53
return factory.Create<
ChangeEventArgs
>(receiver, callback);
64
public static EventCallback<
ChangeEventArgs
> Create(this EventCallbackFactory factory, object receiver, Func<
ChangeEventArgs
, Task> callback)
68
return factory.Create<
ChangeEventArgs
>(receiver, callback);
Microsoft.AspNetCore.Components.Tests (9)
RendererTest.cs (9)
3094
var
eventArgs = new ChangeEventArgs { Value = true };
3136
var
eventArgs = new ChangeEventArgs { Value = "hello" };
3175
var
eventArgs = new ChangeEventArgs { Value = "hello" };
3215
var
eventArgs = new ChangeEventArgs { Value = "hello" };
3255
var
eventArgs = new ChangeEventArgs { Value = "hello" };
4362
AssertFrame.Attribute(attributeFrame, "ontestevent", typeof(Action<
ChangeEventArgs
>));
4414
AssertFrame.Attribute(attributeFrame, "ontestevent", typeof(Action<
ChangeEventArgs
>));
5912
builder.AddAttribute(2, "ontestevent", new Action<
ChangeEventArgs
>((
ChangeEventArgs
eventArgs) =>
Microsoft.AspNetCore.Components.Web (7)
Forms\InputRadioContext.cs (2)
14
public EventCallback<
ChangeEventArgs
> ChangeEventCallback { get; }
21
public InputRadioContext(IInputRadioValueProvider valueProvider, InputRadioContext? parentContext, EventCallback<
ChangeEventArgs
> changeEventCallback)
Web\EventHandlers.cs (2)
45
[EventHandler("onchange", typeof(
ChangeEventArgs
), true, true)]
46
[EventHandler("oninput", typeof(
ChangeEventArgs
), true, true)]
WebEventData\ChangeEventArgsReader.cs (3)
14
internal static
ChangeEventArgs
Read(JsonElement jsonElement)
16
var
changeArgs = new ChangeEventArgs();
37
throw new ArgumentException($"Unsupported {nameof(
ChangeEventArgs
)} value {jsonElement}.");
Microsoft.AspNetCore.Components.Web.Tests (10)
HtmlRendering\HtmlRendererTest.cs (3)
652
rtb.AddAttribute(2, "change", pc.GetValueOrDefault<Action<
ChangeEventArgs
>>("update"));
659
Action<
ChangeEventArgs
> change = (
ChangeEventArgs
changeArgs) => throw new InvalidOperationException();
WebEventData\ChangeEventArgsReaderTest.cs (7)
16
var
args = new ChangeEventArgs
23
var
result = ChangeEventArgsReader.Read(jsonElement);
33
var
args = new ChangeEventArgs
40
var
result = ChangeEventArgsReader.Read(jsonElement);
50
var
args = new ChangeEventArgs
57
var
result = ChangeEventArgsReader.Read(jsonElement);
63
private static JsonElement GetJsonElement(
ChangeEventArgs
args)