Create a FieldAccessor..::..FieldGetter to get the value of the mapped Property through a Field.

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

Syntax

C#
public IGetter GetGetter(
	Type theClass,
	string propertyName
)
Visual Basic
Public Function GetGetter ( _
	theClass As Type, _
	propertyName As String _
) As IGetter
Visual C++
public:
virtual IGetter^ GetGetter(
	Type^ theClass, 
	String^ propertyName
) sealed

Parameters

theClass
Type: System..::..Type
The Type to find the Property in.
propertyName
Type: System..::..String
The name of the mapped Property to get.

Return Value

The FieldAccessor..::..FieldGetter to use to get the value of the Property from an instance of the Type.

Implements

IPropertyAccessor..::..GetGetter(Type, String)

Exceptions

ExceptionCondition
NHibernate..::..PropertyNotFoundException Thrown when a Field specified by the propertyName could not be found in the Type.

See Also