Exemple #1
0
            private IList <System.Reflection.PropertyInfo> GetGetPropertiesByAttrSkipFiliter(Type type)
            {
                var props = TypePropertiesCacheHelper.GetTypePropertiesCache(type);

                _customAttributes = CustomAttributeHelper.GetCustomAttributes(type);
                if (_customAttributes.FirstOrDefault() != null)
                {
                    _customAttributes = _customAttributes.Where(attr => attr.Skip == false);
                    var notSkipAttrsName = _customAttributes.Select(attr => attr.memberInfo.Name);
                    props = props.Where(prop => notSkipAttrsName.Contains(prop.Name)).ToArray();
                }
                return(props);
            }