コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 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);
         }
     }
 }