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
DeclaringType
Gets the shape of the declaring type.
ITypeShape DeclaringType { get; }
Property Value
HandlerType
Gets the shape of the event handler type.
IFunctionTypeShape HandlerType { get; }
Property Value
IsPublic
Gets a value indicating whether the add method is declared public.
bool IsPublic { get; }
Property Value
IsStatic
Gets a value indicating whether the event is static.
bool IsStatic { get; }
Property Value
Name
Gets the name of the event.
string Name { get; }
Property Value
Methods
Accept(TypeShapeVisitor, object?)
Accepts an TypeShapeVisitor for strongly-typed traversal.
object? Accept(TypeShapeVisitor visitor, object? state = null)
Parameters
visitor
TypeShapeVisitorThe visitor to accept.
state
objectThe state parameter to pass to the underlying visitor.