Beispiel #1
0
        /// <summary>
        /// Returns <c>true</c> if <paramref name="obj"/> is a <c>SignalFlow</c> with same source and same target.
        /// </summary>
        public override bool Equals(object obj)
        {
            SignalFlow other = obj as SignalFlow;

            if (other == null)
            {
                return(false);
            }
            return(Target.Equals(other.Target) &&
                   Source.Equals(other.Source));
        }
Beispiel #2
0
 public void VisitSignalRef(SignalRef signalRef)
 {
     if (signalRef.Desc.ElementType == null)
     {
         throw new ArgumentException();
     }
     if (_isTarget)
     {
         _target = signalRef;
     }
     else
     {
         Flow flow = new SignalFlow(signalRef, _target);
         _flows.Add(flow);
     }
 }