Make EventCallbackWorkItem readonly

This commit is contained in:
Ryan Nowak 2019-07-01 17:31:44 -07:00
parent 9287301208
commit db8f9ce087
2 changed files with 3 additions and 3 deletions

View File

@ -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; }

View File

@ -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"/>.