c# - How to generate unique integer from string? -
i have few classes heterogenous keys - int , string - , want work them through common interface. it's pretty simple convert int string cause perfomance issues. options see box them "object", doesn't seems perfect, or somehow generate unique integers string (there no joins between former "string" , "int" must unique in "string" domain) , quetsion here "how"?
just take string.gethashcode() returns int string low collision probability.
Comments
Post a Comment