/// <summary> /// GetHashCode() /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { int hashCode = (Message != null ? Message.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Type; hashCode = (hashCode * 397) ^ (Time != null ? Time.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IsDuplicate.GetHashCode()); hashCode = (hashCode * 397) ^ (CustomType != null ? CustomType.GetHashCode() : 0); return(hashCode); } }
protected bool Equals(FileInformation other) { return(IsDuplicate.Equals(other.IsDuplicate) && Equals(Duplicate, other.Duplicate) && Equals(SourceFile, other.SourceFile) && Equals(DestinationFile, other.DestinationFile)); }