Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectsFactory.CreateInstance(Type, Object) Method

Creates an instance of the specified type using the constructor that best matches the specified parameters.

[Visual Basic]
Public NotOverridable Overloads Sub CreateInstance( _
   ByVal type As Type, _
   ParamArray ctorArgs As Object _
) _
    Implements IObjectsFactory.CreateInstance
[C#]
public object CreateInstance(
   Type type,
   params object[] ctorArgs
);

Parameters

type
The type of object to create.
ctorArgs
An array of constructor arguments.

Return Value

A reference to the created object.

Implements

IObjectsFactory.CreateInstance

See Also

ObjectsFactory Class | Spring.Data.NHibernate.Bytecode Namespace | ObjectsFactory.CreateInstance Overload List