Open sandboxFocus

Property ReceiverEligibility

ReceiverEligibility

Gets whether the receiver of the call can or must be mapped to the this of the generated method, at the current call site and at every call site of its group.

Declaration
InterceptorReceiverEligibility ReceiverEligibility { get; }
Property Value
Type Description
InterceptorReceiverEligibility
Remarks

A delegate that maps the receiver to this when IsThisEligibleForAllSites is true generates one method for each group, either an instance method or a static method. When IsThisEligible is false, setting ReceiverMapping to This or making Method an instance method throws an InvalidOperationException. A protected method of a base type whose receiver cannot be mapped to this is not intercepted, and the delegates do not run for it.