Class GeneratePropertyBagsForTypesQualifiedWithAttribute
Use this attribute to have the properties ILPostProcessor generate property bags for types implementing the specified interface.
Namespace: Unity.Properties
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class GeneratePropertyBagsForTypesQualifiedWithAttribute : Attribute, _Attribute
Remarks
If you need to generate a property bag for a specific type use GeneratePropertyBagsForTypeAttribute.
Constructors
GeneratePropertyBagsForTypesQualifiedWithAttribute(Type, TypeOptions)
Initializes a new instance of the GeneratePropertyBagsForTypesQualifiedWithAttribute attribute.
Declaration
public GeneratePropertyBagsForTypesQualifiedWithAttribute(Type type, TypeOptions options = TypeOptions.ValueType | TypeOptions.ReferenceType | TypeOptions.Default)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The interface type to generate property bags for. |
TypeOptions | options | Additional type filtering options. |
Exceptions
Type | Condition |
---|---|
ArgumentException | The type is null or the given type is not an interface. |
Fields
Options
Options used for additional filtering.
Declaration
public readonly TypeOptions Options
Field Value
Type | Description |
---|---|
TypeOptions |
Type
The interface type to generate property bags for.
Declaration
public readonly Type Type
Field Value
Type | Description |
---|---|
Type |