示例#1
0
 /// <summary>Generates a unique hash code for the given SpindaSpots.</summary>
 /// <returns>Unique hash code</returns>
 public override int GetHashCode()
 {
     return(HashCodeBuilder.Create().AddValue <SpindaCoords>(this.LeftEar)
            .AddValue <SpindaCoords>(this.RightEar)
            .AddValue <SpindaCoords>(this.LeftFace)
            .AddValue <SpindaCoords>(this.RightFace)
            .ToHashCode());
 }
示例#2
0
 /// <summary>Generates a unique hash code for the given HiddenPower.</summary>
 /// <returns>Unique hash code</returns>
 public override int GetHashCode()
 {
     return(HashCodeBuilder.Create().AddValue <Type>(this.Type)
            .AddValue <int>(this.BasePower)
            .ToHashCode());
 }
示例#3
0
 /// <summary>Generates a unique hash code for the given LevelupMove.</summary>
 /// <returns>Unique hash code</returns>
 public override int GetHashCode()
 {
     return(HashCodeBuilder.Create().AddValue <Move>(this.Move)
            .AddValue <int>(this.Level)
            .ToHashCode());
 }
示例#4
0
 /// <summary>Generates a unique hash code for the given SpindaCoords.</summary>
 /// <returns>Unique hash code</returns>
 public override int GetHashCode()
 {
     return(HashCodeBuilder.Create().AddValue <int>(this.X)
            .AddValue <int>(this.Y)
            .ToHashCode());
 }
 public HashCodeBuilder CreateHashCodeBuilder <TList>(TList source, int start, int count) where TList : IReadOnlyList <char>
 {
     return(HashCodeBuilder.Create(source, start, count));
 }