Ejemplo n.º 1
0
Archivo: Irt.cs Proyecto: zrolfs/pwiz
 public override int GetHashCode()
 {
     unchecked
     {
         return((base.GetHashCode() * 397) ^ DatabasePath.GetHashCode());
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         {
             return((base.GetHashCode() * 397) ^ (DatabasePath != null ? DatabasePath.GetHashCode() : 0));
         }
     }
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ DatabasePath.GetHashCode();
         result = (result * 397) ^ (_database != null ? _database.GetHashCode() : 0);
         return(result);
     }
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ DatabasePath.GetHashCode();
         // TODO: Get the code for getting a reference equality hashcode from Nick
         result = (result * 397) ^ (_database != null ? _database.GetHashCode() : 0);
         return(result);
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Serves as a hash function for a RealmConfiguration based on its path.
 /// </summary>
 /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a
 /// hash table.</returns>
 public override int GetHashCode()
 {
     return(DatabasePath.GetHashCode());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Serves as a hash function for a RealmConfiguration based on its path.
 /// </summary>
 /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a
 /// hash table.</returns>
 public override int GetHashCode() => DatabasePath.GetHashCode();