示例#1
0
        private IEnumerable <PropertyProxy> ReadProperties(TypeProxy classType)
        {
            var properties = new List <PropertyProxy>();

            foreach (var property in classType.GetProperties(BindingFlags.Instance | BindingFlags.Public))
            {
                if (property.DeclaringType != classType)
                {
                    continue;
                }

                if (!_filter.IsGoodProperty(property))
                {
                    continue;
                }

                properties.Add(property);
            }

            return(_filter.SortProperties(properties));
        }