예제 #1
0
        public IMethodPointer CreateMethodPointer(IActionContext action)
        {
            SetterPointer sp = (SetterPointer)this.Clone();

            sp._action = (IAction)action;
            return(sp);
        }
예제 #2
0
        public object Clone()
        {
            SetterPointer obj = new SetterPointer(_action);

            if (_prop != null)
            {
                obj.SetProperty = (IProperty)_prop.Clone();
            }
            return(obj);
        }
예제 #3
0
        public bool IsSameObjectRef(IObjectIdentity objectIdentity)
        {
            SetterPointer cs = objectIdentity as SetterPointer;

            if (cs != null)
            {
                return(cs.MethodSignature == this.MethodSignature);
            }
            return(false);
        }
예제 #4
0
 public bool IsSameMethod(IMethod method)
 {
     if (_prop != null)
     {
         SetterPointer cs = method as SetterPointer;
         if (cs != null)
         {
             return(_prop.IsSameObjectRef(cs.SetProperty));
         }
     }
     return(false);
 }
예제 #5
0
        public bool IsSameMethod(IMethodPointer pointer)
        {
            SetterPointer sp = pointer as SetterPointer;

            if (sp != null)
            {
                if (sp.SetProperty.IsSameObjectRef(SetProperty))
                {
                    return(true);
                }
            }
            return(false);
        }