A
Andrew Robinson
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 = craneCounterweightID.ToString() + ":" +
trailerID.ToString() + ":" + craneConfigurationTypeCode;
return hash.GetHashCode();
}
Thanks,
string.
Is this the best method when overriding the GetHashCode() ? I am guessing
not... any thing better?
public override int GetHashCode() {
string hash = craneCounterweightID.ToString() + ":" +
trailerID.ToString() + ":" + craneConfigurationTypeCode;
return hash.GetHashCode();
}
Thanks,