Gets the SerializableType for the specified Type

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

Syntax

C#
public static NullableType GetSerializableType(
	Type serializableType
)
Visual Basic
Public Shared Function GetSerializableType ( _
	serializableType As Type _
) As NullableType
Visual C++
public:
static NullableType^ GetSerializableType(
	Type^ serializableType
)

Parameters

serializableType
Type: System..::..Type
The Type that will be Serialized to the database.

Return Value

A SerializableType

Remarks

In addition to returning the SerializableType it will also ensure that it has been added to the basicNameMap with the keys Type.FullName (the result of IType.Name and Type.AssemblyQualifiedName. This is different from the other items put in the basicNameMap because it is uses the AQN and the FQN as opposed to the short name used in the maps and the FQN.

Since this method calls the method GetSerializableType(System.Type, Int32) with the default length, those keys will also be added.

See Also