I have a class that has three properties: two of type int and one of type
string.
Is this the best method when overriding the GetHashCode() ? I am guessing
not... any thing better?
public override int GetHashCode() {
string hash = craneCounterwei ghtID.ToString( ) + ":" +
trailerID.ToStr ing() + ":" + craneConfigurat ionTypeCode;
return hash.GetHashCod e();
}
Thanks,
string.
Is this the best method when overriding the GetHashCode() ? I am guessing
not... any thing better?
public override int GetHashCode() {
string hash = craneCounterwei ghtID.ToString( ) + ":" +
trailerID.ToStr ing() + ":" + craneConfigurat ionTypeCode;
return hash.GetHashCod e();
}
Thanks,
Comment