Generate small message that can be used in traces and exception messages.

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

Syntax

Visual Basic (Declaration)
Public Shared Function InfoString ( _
	clazz As Type, _
	id As Object _
) As String
C#
public static string InfoString(
	Type clazz,
	Object id
)
Visual C++
public:
static String^ InfoString(
	Type^ clazz, 
	Object^ id
)
JavaScript
NHibernate.Impl.MessageHelper.infoString = function(clazz, id);

Parameters

clazz
Type: System..::.Type
The Type to create the string from.
id
Type: System..::.Object
The identifier of the object.

Return Value

A descriptive String in the format of [classname#id]

See Also