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

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     HistoryText == other.HistoryText ||
                     HistoryText != null &&
                     HistoryText.Equals(other.HistoryText)
                 ) &&
                 (
                     CreatedDate == other.CreatedDate ||
                     CreatedDate != null &&
                     CreatedDate.Equals(other.CreatedDate)
                 ));
        }
Example #2
0
        /// <summary>
        /// Returns true if Note instances are equal
        /// </summary>
        /// <param name="other">Instance of Note to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Note other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Title == other.Title ||
                     Title != null &&
                     Title.Equals(other.Title)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     Importance == other.Importance ||
                     Importance != null &&
                     Importance.Equals(other.Importance)
                 ) &&
                 (
                     CreatedDate == other.CreatedDate ||
                     CreatedDate != null &&
                     CreatedDate.Equals(other.CreatedDate)
                 ) &&
                 (
                     DueDate == other.DueDate ||
                     DueDate != null &&
                     DueDate.Equals(other.DueDate)
                 ) &&
                 (
                     FinishedDate == other.FinishedDate ||
                     FinishedDate != null &&
                     FinishedDate.Equals(other.FinishedDate)
                 ) &&
                 (
                     Finished == other.Finished ||
                     Finished != null &&
                     Finished.Equals(other.Finished)
                 ));
        }
 public bool Equals(FileMetadataList.FileMetadataRow row)
 {
     if (row.FileExtension == null)
     {
         row.FileExtension = "NULL";
     }
     return(FileName.Equals(row.FileName) &&
            FilePath.Equals(row.FilePath) &&
            CreatedDate.Equals(row.CreatedDate) &&
            LastAccessedDate.Equals(row.LastAccessedDate) &&
            LastModifiedDate.Equals(row.LastModifiedDate) &&
            FileTypeId.Equals(row.FileTypeId) &&
            FileExtension.Equals(row.FileExtension) &&
            FileSize.Equals(row.FileSize));
 }
        public override bool Equals(Object o)
        {
            var f = o as File;

            if (f == null)
            {
                return(false);
            }

            var v1 = FileId.Equals(f.FileId);
            var v2 = Name.Equals(f.Name);
            var v3 = CreatedDate.Equals(f.CreatedDate);
            var v4 = Object.Equals(DeleteDate, f.DeleteDate);

            return(v1 && v2 && v3 && v4);
        }
Example #5
0
 public bool Equals(Bookmark other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id == other.Id &&
            string.Equals((string)Site, (string)other.Site) &&
            string.Equals((string)Url, (string)other.Url) &&
            CreatedDate.Equals(other.CreatedDate) &&
            Equals(BookmarkTags, other.BookmarkTags));
 }
Example #6
0
 public bool Equals(ComplexSharedClass other)
 {
     return(_testList.Equals(other.TestList) &&
            CreatedDate.Equals(other.CreatedDate));
 }
Example #7
0
 protected bool Equals(Game other)
 {
     return(Id.Equals(other.Id) && Equals(Team1, other.Team1) && Equals(Team2, other.Team2) && GameState == other.GameState && IsComplete == other.IsComplete && string.Equals(WinningTeam, other.WinningTeam) && IsSimulatedGame == other.IsSimulatedGame && CreatedDate.Equals(other.CreatedDate));
 }
Example #8
0
 protected bool Equals(Module other)
 {
     return(ModuleId == other.ModuleId && string.Equals(Name, other.Name) && string.Equals(Version, other.Version) && IsEntry == other.IsEntry && CreatedDate.Equals(other.CreatedDate) && ModifiedDate.Equals(other.ModifiedDate) && Equals(Data, other.Data));
 }
Example #9
0
 protected bool Equals(Entity other)
 {
     return(Id == other.Id && CreatedDate.Equals(other.CreatedDate));
 }
Example #10
0
 public bool Equals(Money other)
 {
     return(CreatedDate.Equals(other.CreatedDate) && Equals(CurrencyInfo, other.CurrencyInfo) &&
            _override.Equals(other._override) && _places == other._places && _units == other._units);
 }