KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I declared a C# line of code like so int hashcode = "apple".GetHashCode(); On my computer, a computer at work, and a friend's computer, the result was 1657858284. On a development server, the result was 1548091822. Is there a way for me to tell the project to always make GetHashCode() yield 1657858284, regardless of which server it is on? more notes At first, i noticed there was a difference in versions...the 1657858284 results came from .NET 3.5 and .NET 4.0. The 1548091822 came from .NET 2.0. I then told visual studios 2010 to compile project as a .net 2.0 project, but it still gave me 1657858284.
Tags (comma-separated)
Save Edits
Cancel