DotNext.Reflection by Roman Sakno

<PackageReference Include="DotNext.Reflection" Version="3.2.1" />

.NET API 162,816 bytes

 Event<T, THandler>

public sealed class Event<T, THandler> : EventBase<THandler>, IEvent<T, THandler>, IEvent, IMember<EventInfo>, ICustomAttributeProvider where THandler : MulticastDelegate
Provides typed access to instance event declared in type T.
public sealed delegate Accessor<T, THandler> : MulticastDelegate where THandler : MulticastDelegate

Represents event accessor.

public static Accessor<T, THandler> op_UnaryNegation(Event<T, THandler> event)

Returns a delegate which can be used to detach from the event.

public static Accessor<T, THandler> op_UnaryPlus(Event<T, THandler> event)

Returns a delegate which can be used to attach new handlers to the event.

public void AddEventHandler(ref T target, THandler handler)

Adds an event handler to an event source.

public void RemoveEventHandler(ref T target, THandler handler)

Removes an event handler from an event source.