Return the value of public or private property in an object by using reflection
Namespace:
Devolutions.UtilsAssembly: 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 ) |