MulticastAttribute.AttributeTargetTypes Property |
Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public string AttributeTargetTypes { get; set; }
Property Value
Type: StringA wildcard or regular expression specifying to which types this instance applies, or null this instance applies either to all types. Regular expressions should start with the regex: prefix.
Ignored if the AttributeTargetElements are only the module and/or the assembly.
Unless you use a wildcard or a regex, you must specify the fully qualified name of the type.
Nested types are delimited by a plus sign (+) in place of a dot (.).
If the type is generic, add a backtick and its type arity at the end.
Examples:
- Namespace.OuterType`1+NestedType`2
- regex:Namespac.*Nested.*