Example #1
0
 /// <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);
     }
 }
Example #2
0
 protected bool Equals(FileInformation other)
 {
     return(IsDuplicate.Equals(other.IsDuplicate) && Equals(Duplicate, other.Duplicate) && Equals(SourceFile, other.SourceFile) && Equals(DestinationFile, other.DestinationFile));
 }