I have a doubt about c# HashCodes. When I compare a string and get its hashcode an INT will be returned right? We all know that an int has 10 digits lenght. My doubt is about this int generated. I know that a string will always return the SAME hashcode AND
the hashcode algorithm says the hashcode is not UNIQUE. So... do we have a chance to get different strings with the same hashcode??? Or there is a criptography behind the String type to generate HashCodes?
- string Name = "Fernando";
The string Name will generate a hashcode = 1234567890
if we have another string called LastName which value is "Fernando" the Hashcode generated will be 1234567890 right?
if I have 9999999999 strings registered in my system
View Complete Post