Beispiel #1
0
 /// <summary>
 /// Returns a hash-code based on the current value of this object.
 /// </summary>
 public override int GetHashCode()
 {
     return
         ((Description ?? String.Empty).GetHashCode() ^
          (Includes != null ? Includes.GetHashCode() : 0) ^
          (Excludes != null ? Excludes.GetHashCode() : 0));
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (File != null ? File.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ParsedSuccessfully.GetHashCode();
         hashCode = (hashCode * 397) ^ LastWriteTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (BaseDirectory != null ? BaseDirectory.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Types != null ? Types.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Includes != null ? Includes.GetHashCode() : 0);
         return(hashCode);
     }
 }