<PackageReference Include="System.Reflection.Emit" Version="4.6.0-preview9.19421.4" />

EventBuilder

public sealed class EventBuilder
Defines events for a class.
public void AddOtherMethod(MethodBuilder mdBuilder)

Adds one of the "other" methods associated with this event. "Other" methods are methods other than the "on" and "raise" methods associated with an event. This function can be called many times to add as many "other" methods.

public void SetAddOnMethod(MethodBuilder mdBuilder)

Sets the method used to subscribe to this event.

public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)

Set a custom attribute using a specified custom attribute blob.

public void SetCustomAttribute(CustomAttributeBuilder customBuilder)

Sets a custom attribute using a custom attribute builder.

public void SetRaiseMethod(MethodBuilder mdBuilder)

Sets the method used to raise this event.

public void SetRemoveOnMethod(MethodBuilder mdBuilder)

Sets the method used to unsubscribe to this event.