Ejemplo n.º 1
0
        static List <Item> CreateComposer(Type type)
        {
            List <Item> result = new List <Item>();

            foreach (var field in type.GetDataMembers(true, false, true, true, false, true, true, true).OfType <FieldInfo>())
            {
                if (typeof(SyncBase).IsAssignableFrom(field.FieldType))
                {
                    result.Add(new Item(CreateFieldComposer(field), MyFactory.CreateInfo(field)));
                }
            }
            return(result);
        }