Assembly: PostSharp (in PostSharp.dll) Version: 18.104.22.168 (22.214.171.124)
public sealed class ImportMemberAttribute : Advice
Thetype exposes the following members.
Initializes a newand specifies a single name for the member to import.
Initializes a newand specifies several possible names for the member to import.
A human-readable description of the current advice.(Inherited from Advice.)
Determines whether a build time error must be issued if the member to be imported is absent. If false, the binding field will be null in case the imported member is absent.
Reduction in the code lines count achieved by applying the advice instance to one code element.(Inherited from Advice.)
Array of possible names of imported member in the order of precedence.
Fields annotated with thecustom attribute must be public and must not be read only.
At runtime, these fields are assigned to a delegate (in case of method binding) or a pair of delegates (in case of event or property binding) allowing to invoke the imported member.
When IsRequired property is set to true and the target type does not contain a member of the required name and signature, then a build error will be raised.
When multiple member names are specified, the first existing member satisfying all conditions is used.