Example #1
0
        bool available; // true when more specials are available

        public SpecialNodesUserDataInserter(IEnumerable <ISpecial> specials, SpecialOutputVisitor visitor)
        {
            if (specials == null)
            {
                throw new ArgumentNullException("specials");
            }
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }
            enumerator   = specials.GetEnumerator();
            this.visitor = visitor;
            available    = enumerator.MoveNext();
        }
 public SpecialNodesByMapInserter(Hashtable specialsMap, SpecialOutputVisitor visitor)
 {
     if (specialsMap == null)
     {
         throw new ArgumentNullException("specialsMap");
     }
     if (visitor == null)
     {
         throw new ArgumentNullException("visitor");
     }
     //enumerator = specialsMap.GetEnumerator();
     this.visitor = visitor;
     //available = enumerator.MoveNext();
     this.specialsMap = specialsMap;
 }