Used internally to obtain instances of IType.

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public NotInheritable Class TypeFactory
C#
public sealed class TypeFactory
Visual C++
public ref class TypeFactory sealed
JavaScript
NHibernate.Type.TypeFactory = function();

Type.createClass(
	'NHibernate.Type.TypeFactory');

Remarks

Applications should use static methods and constants on NHibernate.NHibernateUtil if the default IType is good enough. For example, the TypeFactory should only be used when the String needs to have a length of 300 instead of 255. At this point NHibernate.String does not get you the correct IType. Instead use TypeFactory.GetString(300) and keep a local variable that holds a reference to the IType.

Inheritance Hierarchy

System..::.Object
  NHibernate.Type..::.TypeFactory

See Also