Retrieve a property value from an object dynamically. This is a simple version that uses Reflection calls directly. It doesn't support indexers.
public static object GetProperty(object instance, string property)
Return Value
Object - cast to proper type
Parameters
instance
Object to make the call on
property
Property to retrieve
See also:
Class ReflectionUtils© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic