예제 #1
0
 public void Invoke()
 {
     if (invokable == null)
     {
         Cache();
     }
     if (_dynamic)
     {
         InvokableEvent call = invokable as InvokableEvent;
         call.Invoke();
     }
     else
     {
         invokable.Invoke(Args);
     }
 }
예제 #2
0
        public void Invoke()
        {
            if (Invokable == null)
            {
                Cache();
            }

            if (m_Dynamic)
            {
                InvokableEvent call = Invokable as InvokableEvent;
                call.Invoke();
            }
            else
            {
                Invokable.Invoke(Arguments);
            }
        }
예제 #3
0
 protected override void Cache()
 {
     if (_target == null || string.IsNullOrEmpty(_methodName))
     {
         invokable = new InvokableEvent(null, null);
     }
     else
     {
         if (_dynamic)
         {
             invokable = new InvokableEvent(target, methodName);
         }
         else
         {
             invokable = GetPersistentMethod();
         }
     }
 }
예제 #4
0
 protected override void Cache()
 {
     if (m_Target == null || string.IsNullOrEmpty(m_MethodName))
     {
         Invokable = new InvokableEvent(null, null);
     }
     else
     {
         if (m_Dynamic)
         {
             Invokable = new InvokableEvent(Target, MethodName);
         }
         else
         {
             Invokable = GetPersistentMethod();
         }
     }
 }