Exemplo n.º 1
0
        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];
        }
Exemplo n.º 2
0
        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];

        }