private static List <PropertyInfo> GetProprites(OBJS.Types Type, Type BaseType) { List <PropertyInfo> Props = new List <PropertyInfo>(); List <PropertyInfo> RawPropertyInfos = new List <PropertyInfo>(BaseType.GetProperties()); 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); }
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); }