Finds the IGetter for the property in the Type.

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

Syntax

Visual Basic (Declaration)
Public Shared Function GetGetter ( _
	theClass As Type, _
	propertyName As String, _
	propertyAccessorName As String _
) As IGetter
C#
public static IGetter GetGetter(
	Type theClass,
	string propertyName,
	string propertyAccessorName
)
Visual C++
public:
static IGetter^ GetGetter(
	Type^ theClass, 
	String^ propertyName, 
	String^ propertyAccessorName
)
JavaScript
NHibernate.Util.ReflectHelper.getGetter = function(theClass, propertyName, propertyAccessorName);

Parameters

theClass
Type: System..::.Type
The Type to find the property in.
propertyName
Type: System..::.String
The name of the Property to find.
propertyAccessorName
Type: System..::.String
The name of the property access strategy.

Return Value

The IGetter to get the value of the Property.

Remarks

This one takes a propertyAccessor name as we might know the correct strategy by now so we avoid Exceptions which are costly

See Also