bool available; // true when more specials are available
		
		public SpecialNodesInserter(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();
		}
示例#2
0
        bool available;         // true when more specials are available

        public SpecialNodesInserter(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();
        }