Example #1
0
        public object Clone()
        {
            ResourceCodePointer obj = new ResourceCodePointer();

            obj._id       = _id;
            obj._resource = _resource;
            return(obj);
        }
Example #2
0
        public bool IsSameObjectRef(IObjectIdentity objectIdentity)
        {
            ResourceCodePointer o = objectIdentity as ResourceCodePointer;

            if (o != null)
            {
                return(o.MemberId == _id);
            }
            return(false);
        }
Example #3
0
        public bool IsSameProperty(IPropertyPointer p)
        {
            IObjectIdentity objectIdentity = p as IObjectIdentity;

            if (objectIdentity != null)
            {
                ResourceCodePointer o = objectIdentity as ResourceCodePointer;
                if (o != null)
                {
                    return(o.MemberId == _id);
                }
            }
            return(false);
        }