PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesImport­Member­Advice­InstanceIs­Required
Open sandboxFocus

ImportMemberAdviceInstance.IsRequired Property

IsRequired

Determines whether a build-time error should be emitted if the member cannot be found. If false, the binding field will be null in case the imported member is absent.

Declaration
public bool IsRequired { get; }
Property Value
Type Description
System.Boolean
Remarks

This property is always true when the Member property is set.