Пример #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);
        }