Returns the value of the static field fieldName of type.

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

Syntax

Visual Basic (Declaration)
Public Shared Function GetConstantValue ( _
	type As Type, _
	fieldName As String _
) As Object
C#
public static Object GetConstantValue(
	Type type,
	string fieldName
)
Visual C++
public:
static Object^ GetConstantValue(
	Type^ type, 
	String^ fieldName
)
JavaScript
NHibernate.Util.ReflectHelper.getConstantValue = function(type, fieldName);

Parameters

type
Type: System..::.Type
The Type .
fieldName
Type: System..::.String
The name of the field in the type.

Return Value

The value contained in the field, or nullNothingnullptra null reference (Nothing in Visual Basic) if the type or the field does not exist.

See Also