Table of Contents

Interface IEventShape<TDeclaringType, TEventHandler>

Namespace
PolyType.Abstractions
Assembly
PolyType.dll

Provides a strongly typed shape model for a given .NET event.

public interface IEventShape<TDeclaringType, TEventHandler> : IEventShape

Type Parameters

TDeclaringType

The type declaring the event.

TEventHandler

The type of the event handler.

Inherited Members

Properties

DeclaringType

Gets the shape of the declaring type.

ITypeShape<TDeclaringType> DeclaringType { get; }

Property Value

ITypeShape<TDeclaringType>

Methods

GetAddHandler()

Gets a delegate that adds an event handler to the event.

Setter<TDeclaringType?, TEventHandler> GetAddHandler()

Returns

Setter<TDeclaringType, TEventHandler>

A setter delegate that adds an event handler.

GetRemoveHandler()

Gets a delegate that removes an event handler from the event.

Setter<TDeclaringType?, TEventHandler> GetRemoveHandler()

Returns

Setter<TDeclaringType, TEventHandler>

A setter delegate that removes an event handler.