Specifies how an object should be constructed: the constructor to be used, the arguments to be passed to this constructor, and the fields or properties to be set.
Namespace: PostSharp.Reflection
Assembly: PostSharp.dll
Syntax
public sealed class ObjectConstructionConstructors
| Name | Description |
|---|---|
| ObjectConstruction(ConstructorInfo, params object[]) | Initializes a new type-safe instance of the ObjectConstruction class from a ConstructorInfo. |
| ObjectConstruction(CustomAttributeData) | Initializes a new type-safe instance of the ObjectConstruction class from a CustomAttributeData. |
| ObjectConstruction(string, params object[]) | Initializes a new instance of the ObjectConstruction class by specifying a type name and a list of constructor arguments. |
| ObjectConstruction(Type, params object[]) | Initializes a new instance of the ObjectConstruction class by specifying a type and a list of constructor arguments. |
Properties
| Name | Description |
|---|---|
| Constructor | Gets the custom attribute constructor. |
| ConstructorArguments | Gets the arguments passed to the custom attribute constructor. |
| NamedArguments | Gets the collection of named arguments. |
| TypeName | Gets the assembly-qualified type name of the object. |