WithObject(IExpression?)
Gets an IEventInvoker for the same event but with a different object, specified as a compile-time IExpression object.
Declaration
IEventInvoker WithObject(IExpression? obj)Parameters
| Type | Name | Description |
|---|---|---|
| IExpression | obj | The run-time expression that represents the object on which the field or property is accessed, or |
Returns
| Type | Description |
|---|---|
| IEventInvoker |
WithObject(dynamic?)
Gets an IEventInvoker for the same event but with a different object, specified as a run-time C# expression.
Declaration
IEventInvoker WithObject(dynamic? obj)Parameters
| Type | Name | Description |
|---|---|---|
| dynamic | obj | The run-time expression that represents the object on which the field or property is accessed, or |
Returns
| Type | Description |
|---|---|
| IEventInvoker |