public static bool IsBrowsable(this object obj, PropertyInfo property) { string key = string.Format("{0}.{1}", obj.GetType(), property.Name); if (!BrowsableProperties.ContainsKey(key)) { bool browsable = property.IsNavigable(); BrowsableProperties.Add(key, browsable); } return BrowsableProperties[key]; }
private static bool IsBrowsable(this object obj, PropertyInfo property) { var key = $"{obj.GetType()} .{property.Name}"; if (!BrowsableProperties.ContainsKey(key)) { var browsable = property.IsNavigable(); BrowsableProperties.Add(key, browsable); } return BrowsableProperties[key]; }