Exemple #1
0
 public bool Subscribe(EventDemo.ISomeInterface sink)
 {
     if (m_someInterfaceList.Contains(sink))
     {
         Debug.Assert(false);
         return(false);
     }
     m_someInterfaceList.Add(sink);
     return(true);
 }
 public virtual bool Unsubscribe(EventDemo.ISomeInterface sink)
 {
     if (!m_someInterfaceList.Contains(sink))
     {
         Debug.Assert(false);
         return(false);
     }
     m_someInterfaceList.Remove(sink);
     return(true);
 }