Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int GenerateHashCode(string s)
- {
- int p = 31;
- int hash = 0;
- foreach (var c in s)
- hash = hash * p + c;
- return hash;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement