Returns the value of the static field fieldName of type.

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

Syntax

C#
public static Object GetConstantValue(
	Type type,
	string fieldName
)
Visual Basic
Public Shared Function GetConstantValue ( _
	type As Type, _
	fieldName As String _
) As Object
Visual C++
public:
static Object^ GetConstantValue(
	Type^ type, 
	String^ 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