Table of Contents

Interface IEventShape

Namespace
PolyType.Abstractions
Assembly
PolyType.dll

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

public interface IEventShape

Properties

AttributeProvider

Gets the provider used for member-level attribute resolution.

ICustomAttributeProvider? AttributeProvider { get; }

Property Value

ICustomAttributeProvider

DeclaringType

Gets the shape of the declaring type.

ITypeShape DeclaringType { get; }

Property Value

ITypeShape

HandlerType

Gets the shape of the event handler type.

IFunctionTypeShape HandlerType { get; }

Property Value

IFunctionTypeShape

IsPublic

Gets a value indicating whether the add method is declared public.

bool IsPublic { get; }

Property Value

bool

IsStatic

Gets a value indicating whether the event is static.

bool IsStatic { get; }

Property Value

bool

Name

Gets the name of the event.

string Name { get; }

Property Value

string

Methods

Accept(TypeShapeVisitor, object?)

Accepts an TypeShapeVisitor for strongly-typed traversal.

object? Accept(TypeShapeVisitor visitor, object? state = null)

Parameters

visitor TypeShapeVisitor

The visitor to accept.

state object

The state parameter to pass to the underlying visitor.

Returns

object

The object result returned by the visitor.