Return the value of public or private property in an object by using reflection

Namespace:  Devolutions.Utils
Assembly:  Devolutions.Utils (in Devolutions.Utils.dll)

Syntax

Visual Basic
Public Shared Function GetPropertyValue ( _
	value As Object, _
	propertyName As String _
) As Object
C#
public static Object GetPropertyValue(
	Object value,
	string propertyName
)

Parameters

value
Type: System..::..Object
propertyName
Type: System..::..String

Return Value

See Also