public static IEnumerable <PropertyDescriptor> Properties(this object obj) { return(ReflectionCache.GetProperties(obj)); }
public static PropertyDescriptor GetPropertyDesc(object obj, string propertyName) { IEnumerable <PropertyDescriptor> prop = ReflectionCache.GetProperties(obj); return(Enumerable.Where(prop, (el) => el.Name == propertyName).First()); }