コード例 #1
0
        public object Clone()
        {
            ResourceCodePointer obj = new ResourceCodePointer();

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

            if (o != null)
            {
                return(o.MemberId == _id);
            }
            return(false);
        }
コード例 #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);
        }