public static IEnumerable<PropertyInfo> GetRuntimeProperties (this Type type) { if (type == null) throw new ArgumentNullException ("type"); return type.GetProperties (AllMembersBindingFlags); }