Extract the value of a particular property from the given entity.

Namespace: NHibernate.Tuple.Entity
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
Object GetPropertyValue(
	Object entity,
	string propertyName
)
Visual Basic
Function GetPropertyValue ( _
	entity As Object, _
	propertyName As String _
) As Object
Visual C++
Object^ GetPropertyValue(
	Object^ entity, 
	String^ propertyName
)

Parameters

entity
Type: System..::..Object
The entity from which to extract the property value.
propertyName
Type: System..::..String
The name of the property for which to extract the value.

Return Value

The current value of the given property on the given entity.

See Also