/// <summary>
        /// Returns true if ModelFlowChartMeta instances are equal
        /// </summary>
        /// <param name="other">Instance of ModelFlowChartMeta to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ModelFlowChartMeta other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Kind == other.Kind ||
                     Kind != null &&
                     Kind.Equals(other.Kind)
                 ) &&
                 (
                     CreatedTime == other.CreatedTime ||
                     CreatedTime != null &&
                     CreatedTime.Equals(other.CreatedTime)
                 ) &&
                 (
                     LastModifiedTime == other.LastModifiedTime ||
                     LastModifiedTime != null &&
                     LastModifiedTime.Equals(other.LastModifiedTime)
                 ) &&
                 (
                     Author == other.Author ||
                     Author != null &&
                     Author.Equals(other.Author)
                 ) &&
                 (
                     EditMode == other.EditMode ||
                     EditMode != null &&
                     EditMode.Equals(other.EditMode)
                 ) &&
                 (
                     Config == other.Config ||
                     Config != null &&
                     Config.Equals(other.Config)
                 ) &&
                 (
                     Comments == other.Comments ||
                     Comments != null &&
                     Comments.Equals(other.Comments)
                 ));
        }
 public bool Equals(IMarker other)
 {
     return
         (other != null &&
          Id.Equals(other.Id) &&
          Name == other.Name &&
          RelativePosition.Equals(other.RelativePosition) &&
          RelativeRotationEuler.Equals(other.RelativeRotationEuler) &&
          ObjectScale.Equals(other.ObjectScale) &&
          CreatedTime.Equals(other.CreatedTime) &&
          LastUpdatedTime.Equals(other.LastUpdatedTime) &&
          LastUsedTime.Equals(other.LastUsedTime));
 }
Пример #3
0
        /// <summary>
        /// 判断两个实体是否是同一数据记录的实体
        /// </summary>
        /// <param name="obj">要比较的实体信息</param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            EntityBase <TKey> entity = obj as EntityBase <TKey>;

            if (entity == null)
            {
                return(false);
            }
            return(Id.Equals(entity.Id) && CreatedTime.Equals(entity.CreatedTime));
        }
Пример #4
0
 public bool Equals(Room other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id == other.Id &&
            CreatorUserId == other.CreatorUserId &&
            string.Equals(Name, other.Name) &&
            CreatedTime.Equals(other.CreatedTime) &&
            Softdelete == other.Softdelete);
 }
        /// <summary>
        /// Returns true if ModelFlowChartEdgeMeta instances are equal
        /// </summary>
        /// <param name="other">Instance of ModelFlowChartEdgeMeta to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ModelFlowChartEdgeMeta other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Kind == other.Kind ||
                     Kind != null &&
                     Kind.Equals(other.Kind)
                 ) &&
                 (
                     CreatedTime == other.CreatedTime ||
                     CreatedTime != null &&
                     CreatedTime.Equals(other.CreatedTime)
                 ) &&
                 (
                     ModifiedTime == other.ModifiedTime ||
                     ModifiedTime != null &&
                     ModifiedTime.Equals(other.ModifiedTime)
                 ) &&
                 (
                     Author == other.Author ||
                     Author != null &&
                     Author.Equals(other.Author)
                 ) &&
                 (
                     Comments == other.Comments ||
                     Comments != null &&
                     Comments.Equals(other.Comments)
                 ));
        }
Пример #6
0
 protected bool Equals(Player other)
 {
     return(CreatedTime.Equals(other.CreatedTime) && string.Equals(Name, other.Name));
 }