public bool Equals(DuplicateFileModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(LastWriteTime.Equals(other.LastWriteTime) && LastAccessTimeUtc.Equals(other.LastAccessTimeUtc) && LastAccessTime.Equals(other.LastAccessTime) && CreationTimeUtc.Equals(other.CreationTimeUtc) && CreationTime.Equals(other.CreationTime) && LastWriteTimeUtc.Equals(other.LastWriteTimeUtc) && string.Equals(FullName, other.FullName) && string.Equals(Name, other.Name) && string.Equals(HashValue, other.HashValue) && string.Equals(UniqueIdHashValue, other.UniqueIdHashValue) && IsMaster == other.IsMaster && Equals(DuplicateFiles, other.DuplicateFiles) && FileSize == other.FileSize); }
public bool Equals(ImageReferenceElement other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Directory, other.Directory) && string.Equals(FileName, other.FileName) && string.Equals(CompletePath, other.CompletePath) && Size == other.Size && CreationTime.Equals(other.CreationTime) && LastWriteTime.Equals(other.LastWriteTime) && LastAccessTime.Equals(other.LastAccessTime)); }
/// <summary> /// Compares <code>IFileSystemInfo</code> to <code>FileSystemInfo</code> on name, last write time and attributes. /// </summary> /// <param name="fileSystemInfo">Comparison <code>FileSystemInfo</code>.</param> /// <returns> <code>true</code> if <code>IFileSystemInfo</code> and <code>FileSystemInfo</code> are identical, <code>false</code> otherwise. </returns> public virtual bool IsIdenticalTo(FileSystemInfo fileSystemInfo) { if (fileSystemInfo == null) { throw new ArgumentNullException("fileSystemInfo", "File is null."); } if (Name != fileSystemInfo.Name || !LastWriteTime.Equals(fileSystemInfo.LastWriteTime) || (Attributes & fileSystemInfo.Attributes) != Attributes) { return(false); } return(true); }
/// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> protected bool Equals(WikiPage other) { return(string.Equals(Code, other.Code) && Existed.Equals(other.Existed) && string.Equals(Text, other.Text) && LastWriteTime.Equals(other.LastWriteTime) && string.Equals(Owner, other.Owner) && string.Equals(Editor, other.Editor) && string.Equals(Title, other.Title) && string.Equals(Version, other.Version) && Published.Equals(other.Published) && string.Equals(Locker, other.Locker)); }
public bool Equals(IncludeCacheEntry other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(File == other.File && ParsedSuccessfully == other.ParsedSuccessfully && LastWriteTime.Equals(other.LastWriteTime) && BaseDirectory == other.BaseDirectory && Equals(Types, other.Types) && Equals(Includes, other.Includes)); }