/// <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; }
/// <summary> /// Create an IteratorDescriptor that is nested in a parent iterator. /// </summary> public IteratorDescriptor(IteratorDescriptor iterParent) { Init(iterParent, iterParent._helper); }
/// <summary> /// Internal helper initializor. /// </summary> private void Init(IteratorDescriptor iterParent, GenerateHelper helper) { _helper = helper; _iterParent = iterParent; }