예제 #1
0
 public static WeakMulticastDelegate Combine(WeakMulticastDelegate weakDelegate, Delegate realDelegate)
 {
     if (realDelegate == null)
     {
         return(null);
     }
     if (weakDelegate == null)
     {
         return(new WeakMulticastDelegate(realDelegate));
     }
     return(weakDelegate.Combine(realDelegate));
 }
예제 #2
0
 public static WeakMulticastDelegate Combine(WeakMulticastDelegate weakDelegate, Delegate realDelegate)
 {
     if (realDelegate == null) return null;
     if (weakDelegate == null) return new WeakMulticastDelegate(realDelegate);
     return weakDelegate.Combine(realDelegate);
 }
예제 #3
0
 public static WeakMulticastDelegate operator +(WeakMulticastDelegate d, Delegate realD)
 {
     return(WeakMulticastDelegate.Combine(d, realD));
 }