Esempio n. 1
0
        protected virtual __Delegate RemoveImpl(__Delegate d)
        {
            if (d.Equals(this))
            {
                return null;
            }

            return this;
        }
Esempio n. 2
0
        protected virtual __Delegate RemoveImpl(__Delegate d)
        {
            if (d.Equals(this))
            {
                return(null);
            }

            return(this);
        }
Esempio n. 3
0
 public static __Delegate Remove(__Delegate source, __Delegate value)
 {
     if (source == null)
     {
         return null;
     }
     if (value == null)
     {
         return source;
     }
     return source.RemoveImpl(value);
 }
Esempio n. 4
0
 public static __Delegate Remove(__Delegate source, __Delegate value)
 {
     if (source == null)
     {
         return(null);
     }
     if (value == null)
     {
         return(source);
     }
     return(source.RemoveImpl(value));
 }
Esempio n. 5
0
        public static __Delegate Combine([ScriptParameterByRef] __Delegate a, [ScriptParameterByRef] __Delegate b)
        {
            if (a == null)
            {
                return(b);
            }
            if (b == null)
            {
                return(a);
            }

            return(a.CombineImpl(b));
        }
Esempio n. 6
0
        public static bool IsEqual(__Delegate a, __Delegate b)
        {
            if ((object)a == null)
                return false;

            if ((object)b == null)
                return false;

            if (a.Method == b.Method)
                if (a.Target == b.Target)
                    return true;

            return false;
        }
Esempio n. 7
0
        public static bool IsEqual(__Delegate a, __Delegate b)
        {
            if ((object)a == null)
            {
                return(false);
            }

            if ((object)b == null)
            {
                return(false);
            }

            if (a.Method == b.Method)
            {
                if (a.Target == b.Target)
                {
                    return(true);
                }
            }

            return(false);
        }
        protected override __Delegate RemoveImpl(__Delegate d)
        {
            // ???

            return this;
        }
        protected override __Delegate CombineImpl(__Delegate d)
        {
            list.Push(d);

            return this;
        }
Esempio n. 10
0
        protected virtual __Delegate CombineImpl(__Delegate d)
        {

            return default(__Delegate);
        }
        protected override __Delegate RemoveImpl(__Delegate d)
        {
            // ???

            return(this);
        }
        protected override __Delegate CombineImpl(__Delegate d)
        {
            list.Push(d);

            return(this);
        }
Esempio n. 13
0
 protected virtual __Delegate CombineImpl(__Delegate d)
 {
     return(default(__Delegate));
 }