示例#1
0
        /// <summary>
        /// Set this iterator to be the same as the specified iterator.
        /// </summary>
        public void SetIterator(IteratorDescriptor iterInfo)
        {
            if (iterInfo.HasLabelNext)
            {
                _lblNext = iterInfo.GetLabelNext();
                _hasNext = true;
            }

            _storage = iterInfo.Storage;
        }
示例#2
0
 /// <summary>
 /// Create an IteratorDescriptor that is nested in a parent iterator.
 /// </summary>
 public IteratorDescriptor(IteratorDescriptor iterParent)
 {
     Init(iterParent, iterParent._helper);
 }
示例#3
0
 /// <summary>
 /// Internal helper initializor.
 /// </summary>
 private void Init(IteratorDescriptor iterParent, GenerateHelper helper)
 {
     _helper     = helper;
     _iterParent = iterParent;
 }