Ejemplo n.º 1
0
        private static List <PropertyInfo> GetProprites(OBJS.Types Type, Type BaseType)
        {
            List <PropertyInfo> Props = new List <PropertyInfo>();

            List <PropertyInfo> RawPropertyInfos = new List <PropertyInfo>(BaseType.GetProperties());

            RawPropertyInfos.ForEach(RPI =>
            {
                var WTF   = RPI.GetCustomAttributes(true);
                var Attrs = RPI.GetCustomAttributes(typeof(OBJS.XMLDatabaseRetriveItem), true);
                Attrs.ToString();
            });

            List <PropertyInfo> PropertyInfo = new List <PropertyInfo>(RawPropertyInfos.Where(A => A.GetCustomAttributes(typeof(OBJS.XMLDatabaseRetriveItem), true).Where(B => ((OBJS.XMLDatabaseRetriveItem)B).Type == Type).Any()));

            return(PropertyInfo);
        }