private static object TryGetPropertyValue(object obj, string propertyName, out bool success) { object value = null; success = ReflectionCache.TryToExtractValueFromDescriptor(obj, propertyName, out value); return(value); }
public static object GetPropertyValue(this object obj, string property) { Guard.Check(!(obj is ExpandoObject)); object value = null; // bool success = ReflectionCache.TryToExtractValueFromDescriptor(obj, property, out value); return(value); }