Esempio n. 1
0
 public VisitorFactory(
     ClassProcessorFactory classProcessorFactory,
     FieldProcessorFactory fieldProcessorFactory)
 {
     this.classProcessorFactory = classProcessorFactory;
     this.fieldProcessorFactory = fieldProcessorFactory;
 }
Esempio n. 2
0
        public VisitorFactory <TData> Class <T>(ClassProcessorFactory <T> factory)
        {
            var old = this.classProcessorFactory;

            this.classProcessorFactory = type =>
            {
                return(type.IsAssignableFrom(typeof(T)) ? factory() : old(type));
            };
            return(this);
        }