Force eventArgs to accept the specified visitor and context.
Assembly: Epic.Prelude
Declaration Syntax
| C# |
public static TResult Accept<TResult>( this EventArgs eventArgs, IVisitor<TResult> visitor, IVisitContext context )
Generic Template Parameters
- TResult
- The type of the result of the visit.
Parameters
- eventArgs (EventArgs)
- Event argument that will be routed to visitor with its actual type.
- visitor (IVisitor<(Of <(<'TResult>)>)>)
- Visitor.
- context (IVisitContext)
- Context of the visit.
Return Value
[Missing <returns> documentation for "M:Epic.UnvisitableExtensions.Accept``1(System.EventArgs,Epic.IVisitor{``0},Epic.IVisitContext)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type EventArgs. When you use instance method syntax to call this method, omit the first parameter.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | eventArgs, visitor or context is nullNothingnullptr. |
