PostSharpAPI ReferencePost­Sharp.​ReflectionObject­Construction
Open sandboxFocus

ObjectConstruction Class

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.

Inheritance
System.Object
ObjectConstruction
Namespace: PostSharp.Reflection
Assembly: PostSharp.dll
Syntax
public sealed class ObjectConstruction : Object

Constructors

Name Description
ObjectConstruction(ConstructorInfo, Object[])

Initializes a new type-safe ObjectConstruction from a System.Reflection.ConstructorInfo.

ObjectConstruction(CustomAttributeData)

Initializes a new type-safe ObjectConstruction from a CustomAttributeData

ObjectConstruction(String, Object[])

Initializes a new ObjectConstruction by specifying a type name and a list of constructor arguments.

ObjectConstruction(Type, 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.