示例#1
0
 /// <summary>
 /// Adds sibling MyEvent classes which to fire synchronously.
 /// </summary>
 public void SubscribeMeTo(MyEvent m)
 {
     if (this != m)
     {
         SiblingEvents.Add(m);
     }
 }
 /// <summary>
 /// Adds sibling MyEvent classes which to fire synchronously.
 /// </summary>
 public void SubscribeMeTo(MyEvent m)
 {
     if (this == m)
     {
         return;                // We don't want to get into weird loops
     }
     SiblingEvents.Add(m);
 }