Example #1
0
 public bool IsSameMethod(IMethod method)
 {
     if (_prop != null)
     {
         CustomSetter_Obsolete cs = method as CustomSetter_Obsolete;
         if (cs != null)
         {
             return(_prop.IsSameObjectRef(cs.PropertyToSet));
         }
     }
     return(false);
 }
Example #2
0
 public bool IsSameObjectRef(IObjectIdentity objectIdentity)
 {
     if (_prop != null)
     {
         CustomSetter_Obsolete cs = objectIdentity as CustomSetter_Obsolete;
         if (cs != null)
         {
             return(_prop.IsSameObjectRef(cs.PropertyToSet));
         }
     }
     return(false);
 }
Example #3
0
        public object Clone()
        {
            CustomSetter_Obsolete obj = new CustomSetter_Obsolete();

            if (_prop != null)
            {
                obj.PropertyToSet = (CustomPropertyPointer)_prop.Clone();
            }
            if (_parameterTypes != null)
            {
                List <IParameter> l = new List <IParameter>();
                foreach (IParameter p in _parameterTypes)
                {
                    l.Add((IParameter)p.Clone());
                }
                obj._parameterTypes = l;
            }
            if (_value != null)
            {
                _value.SetCloneOwner(obj);
                obj._value = (ParameterValue)_value.Clone();
            }
            return(obj);
        }