Esempio n. 1
0
        public IMethodPointer CreateMethodPointer(IActionContext action)
        {
            SetterPointer sp = (SetterPointer)this.Clone();

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

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

            if (cs != null)
            {
                return(cs.MethodSignature == this.MethodSignature);
            }
            return(false);
        }
Esempio n. 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);
 }
Esempio n. 5
0
        public bool IsSameMethod(IMethodPointer pointer)
        {
            SetterPointer sp = pointer as SetterPointer;

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