Class GeneratePropertyBagsForTypeAttribute
Use this attribute to have the ILPostProcessor generate a property bag for a given type. This attribute works for the specified type ONLY, it does NOT include derived types.
Namespace: Unity.Properties
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class GeneratePropertyBagsForTypeAttribute : Attribute, _Attribute
Remarks
If you need to generate property bags for types implementing a specific interface use GeneratePropertyBagsForTypesQualifiedWithAttribute.
Constructors
GeneratePropertyBagsForTypeAttribute(Type)
Initializes a new instance of the GeneratePropertyBagsForTypeAttribute attribute.
Declaration
public GeneratePropertyBagsForTypeAttribute(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type to generate a property bag for. |
Exceptions
Type | Condition |
---|---|
ArgumentException | The specified type is not a valid container type. |
Fields
Type
The type to generate a property bag for.
Declaration
public readonly Type Type
Field Value
Type | Description |
---|---|
Type |