public override bool Equals(object obj) { if (this == obj) { return(true); } if (null == obj || this.GetType() != obj.GetType()) { return(false); } JaroWinklerDistance o = (JaroWinklerDistance)obj; return(J2N.BitConversion.SingleToInt32Bits(o.threshold) == J2N.BitConversion.SingleToInt32Bits(this.threshold)); }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (null == obj || this.GetType() != obj.GetType()) { return(false); } JaroWinklerDistance o = (JaroWinklerDistance)obj; return(Number.FloatToIntBits(o.threshold) == Number.FloatToIntBits(this.threshold)); }