IsRequired
Gets or sets a value indicating whether the parameter must never be null. When this property is true, the compiler reports
an error when the advice can run before the method yields, which is the case of every advice except the resume advice, and when the
target method cannot provide its task. The resume advice can also run before the method yields when the entry advice of its group yields
on an awaiter that is already completed, so the compiler also reports an error when that entry advice has an AwaiterAttribute
parameter. The default value is false.
Declaration
public bool IsRequired { get; set; }Property Value
| Type | Description |
|---|---|
| bool |
Remarks
When the advice is selected by MatchPointcut, a target method that cannot provide its task is skipped, and no error is reported for it.