Make EventCallbackWorkItem readonly
This commit is contained in:
parent
9287301208
commit
db8f9ce087
|
|
@ -194,9 +194,9 @@ namespace Microsoft.AspNetCore.Components
|
|||
public static Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.UIWheelEventArgs> Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func<Microsoft.AspNetCore.Components.UIWheelEventArgs, System.Threading.Tasks.Task> callback) { throw null; }
|
||||
}
|
||||
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
||||
public partial struct EventCallbackWorkItem
|
||||
public readonly partial struct EventCallbackWorkItem
|
||||
{
|
||||
private object _dummy;
|
||||
private readonly object _dummy;
|
||||
public static readonly Microsoft.AspNetCore.Components.EventCallbackWorkItem Empty;
|
||||
public EventCallbackWorkItem(System.MulticastDelegate @delegate) { throw null; }
|
||||
public System.Threading.Tasks.Task InvokeAsync(object arg) { throw null; }
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Components
|
|||
/// <summary>
|
||||
/// Wraps a callback delegate associated with an event.
|
||||
/// </summary>
|
||||
public struct EventCallbackWorkItem
|
||||
public readonly struct EventCallbackWorkItem
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty <see cref="EventCallbackWorkItem"/>.
|
||||
|
|
|
|||
Loading…
Reference in New Issue