Пример #1
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method determines whether or not any metadata is
        /// different between the input instance and the current instance.</summary>
        ///
        /// <param name="inputEntityReference">The entityreference to compare metadata.</param>
        ///--------------------------------------------------------------------------------
        public bool IsIdenticalMetadata(EntityReference inputEntityReference)
        {
            if (EntityReferenceName.GetString() != inputEntityReference.EntityReferenceName.GetString())
            {
                return(false);
            }
            if (EntityID.GetGuid() != inputEntityReference.EntityID.GetGuid())
            {
                return(false);
            }
            if (ReferencedEntityID.GetGuid() != inputEntityReference.ReferencedEntityID.GetGuid())
            {
                return(false);
            }

            #region protected
            #endregion protected

            return(true);
        }
Пример #2
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method determines whether or not any metadata is
        /// different between the input instance and the current instance.</summary>
        ///
        /// <param name="inputCollection">The collection to compare metadata.</param>
        ///--------------------------------------------------------------------------------
        public bool IsIdenticalMetadata(Collection inputCollection)
        {
            if (CollectionName.GetString() != inputCollection.CollectionName.GetString())
            {
                return(false);
            }
            if (EntityID.GetGuid() != inputCollection.EntityID.GetGuid())
            {
                return(false);
            }
            if (ReferencedEntityID.GetGuid() != inputCollection.ReferencedEntityID.GetGuid())
            {
                return(false);
            }

            #region protected
            #endregion protected

            return(true);
        }