Specifies how an object should be constructed, i.e. specifies 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 ObjectConstruction
Constructors
Name | Description |
---|---|
ObjectConstruction(ConstructorInfo, params object[]) | Initializes a new type-safe ObjectConstruction from a ConstructorInfo. |
ObjectConstruction(CustomAttributeData) | Initializes a new type-safe ObjectConstruction from a CustomAttributeData |
ObjectConstruction(string, params object[]) | Initializes a new ObjectConstruction by specifying a type name and a list of constructor arguments. |
ObjectConstruction(Type, params object[]) | Initializes a new ObjectConstruction by specifying a type name 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. |