Пример #1
0
 protected bool Equals(RemoteUrl other)
 {
     return(CentroidMs1 == other.CentroidMs1 && CentroidMs2 == other.CentroidMs2 &&
            Equals(LockMassParameters, other.LockMassParameters) && string.Equals(ServerUrl, other.ServerUrl) &&
            string.Equals(Username, other.Username) && ModifiedTime.Equals(other.ModifiedTime) &&
            string.Equals(EncodedPath, other.EncodedPath));
 }
        /// <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)
                 ));
        }