Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectsFactory.CreateInstance(Type, Boolean) Method

Creates an instance of the specified type.

[Visual Basic]
Public NotOverridable Overloads Sub CreateInstance( _
   ByVal type As Type, _
   ByVal nonPublic As Boolean _
) _
    Implements IObjectsFactory.CreateInstance
[C#]
public object CreateInstance(
   Type type,
   bool nonPublic
);

Parameters

type
The type of object to create.
nonPublic
true if a public or nonpublic default constructor can match; false if only a public default constructor can match.

Return Value

A reference to the created object

Implements

IObjectsFactory.CreateInstance

See Also

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