public override int GetHashCode() { int hash = 7; hash = 71 * hash + this.unitType; hash = 71 * hash + JavaUtil.FloatToIntBits(this.value); return(hash); }
/// <summary>Generates a hash code for this object.</summary> /// <returns>the hash code of this object</returns> /// <seealso cref="System.Object.GetHashCode()"/> public override int GetHashCode() { //return Arrays.hashCode(vals); // JDK 5 code, replaced with the following int result = 1; for (int i = 0; i < vals.Length; i++) { result = 31 * result + JavaUtil.FloatToIntBits(vals[i]); } return(result); }