Open sandboxFocus

Constructor ObjectConstruction

ObjectConstruction(string, params 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
string typeName

Name of the object type.

object[] constructorArguments

Arguments passed to the constructor.

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

Object type.

object[] constructorArguments

Arguments passed to the constructor.

ObjectConstruction(ConstructorInfo, params 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