Describes whether the receiver of a call can or must be mapped to the this of the generated interceptor method, that is, whether
ReceiverMapping can or must be This. The
ReceiverEligibility property gives it.
Implements
Namespace: Metalama.Extensions.Interceptors
Assembly: Metalama.Extensions.Interceptors.dll
Syntax
[CompileTime]
public readonly struct InterceptorReceiverEligibility : IEquatable<InterceptorReceiverEligibility>Remarks
The properties are nested: IsThisRequired implies IsThisEligibleForAllSites, which implies
IsThisEligible. The default value of the structure has all the properties false: the receiver cannot be mapped to
this.
The sites of a group are the call sites that are intercepted with the same template, in the same placement type, for the same intercepted method. The constructions of a generic type and of a generic method are the same type and the same method. A call site that cannot be intercepted is not part of a group.
Properties
| Name | Description |
|---|---|
| IsThisEligible | Gets a value indicating whether the receiver of the call can be mapped to |
| IsThisEligibleForAllSites | Gets a value indicating whether the receiver can be mapped to |
| IsThisRequired | Gets a value indicating whether the receiver must be mapped to |
Methods
| Name | Description |
|---|---|
| Equals(InterceptorReceiverEligibility) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Operators
| Name | Description |
|---|---|
| operator ==(InterceptorReceiverEligibility, InterceptorReceiverEligibility) | Determines whether two values are equal. |
| operator !=(InterceptorReceiverEligibility, InterceptorReceiverEligibility) | Determines whether two values are different. |