public override void End() { base.End(); AttributeSource.State finalState = CaptureState(); for (System.Collections.IEnumerator it = sinks.GetEnumerator(); it.MoveNext();) { SinkTokenStream sink = (SinkTokenStream)((System.WeakReference)it.Current).Target; if (sink != null) { sink.SetFinalState(finalState); } } }
public override void End() { base.End(); AttributeSource.State finalState = CaptureState(); foreach (WeakReference wr in sinks) { SinkTokenStream sink = (SinkTokenStream)wr.Target; if (sink != null) { sink.SetFinalState(finalState); } } }