Open sandboxFocus

Method Receiver

Receiver()

Gets an expression representing the receiver, i.e. this in an instance member, or the receiver parameter in an extension member, according to the current context.

Declaration
public static IExpression Receiver()
Returns
Type Description
IExpression
See Also

Receiver(IDeclaration)

Gets an expression representing the receiver, i.e. this in an instance member, or the receiver parameter in an extension member, in the context of a given declaration.

Declaration
public static IExpression Receiver(IDeclaration declaration)
Parameters
Type Name Description
IDeclaration declaration
Returns
Type Description
IExpression
Remarks

Unlike the parameterless Receiver() method, the current method works in any context, even outside a template.

See Also