Hi I have a class with 6 string properties. A unique object will have different values for atleast one of these fields
To implement IEqualityComparer's GetHashCode function, I am concatenating all 6 properties and calling the GetHashCode on the resultant string.
I had the following doubts:
- Is it necessary to call the GetHashcode on a unique value?
- Will the concatenation operation on the six properties make the comparison slow?
- Should I use some other approach?