Get the true, underlying class of a proxied persistent class. This operation will NOT initialize the proxy and thus may return an incorrect result.

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

Syntax

Visual Basic (Declaration)
Public Shared Function GuessClass ( _
	proxy As Object _
) As Type
C#
public static Type GuessClass(
	Object proxy
)
Visual C++
public:
static Type^ GuessClass(
	Object^ proxy
)
JavaScript
NHibernate.Proxy.NHibernateProxyHelper.guessClass = function(proxy);

Parameters

proxy
Type: System..::.Object
a persistable object or proxy

Return Value

guessed class of the instance

Remarks

This method is approximate match for Session.bestGuessEntityName in H3.2

See Also