PostSharpAPI ReferencePost­Sharp.​ReflectionObject­ConstructionObject­Construction
Open sandboxFocus

ObjectConstruction Constructor

ObjectConstruction(String, Object[])

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

Declaration
public ObjectConstruction(string typeName, params object[] constructorArguments)
Parameters
Type Name Description
System.String typeName

Name of the object type.

Object[] constructorArguments

Arguments passed to the constructor.

ObjectConstruction(Type, Object[])

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

Declaration
public ObjectConstruction(Type type, params object[] constructorArguments)
Parameters
Type Name Description
System.Type type

Object type.

Object[] constructorArguments

Arguments passed to the constructor.

ObjectConstruction(ConstructorInfo, Object[])

Initializes a new type-safe ObjectConstruction from a ConstructorInfo.

Declaration
public ObjectConstruction(ConstructorInfo constructor, params object[] constructorArguments)
Parameters
Type Name Description
ConstructorInfo constructor

Constructor.

Object[] constructorArguments

Arguments passed to the constructor.

ObjectConstruction(CustomAttributeData)

Initializes a new type-safe ObjectConstruction from a CustomAttributeData

Declaration
public ObjectConstruction(CustomAttributeData customAttributeData)
Parameters
Type Name Description
CustomAttributeData customAttributeData

A CustomAttributeData