String.GetHashCode() returns different values
问题 Why is GetHashCode() returning a different value for the same string? I can't describe how to duplicate this, but trust that this is not a practical joke and that the two following lines came from my watch window at two separate times: "DDD.Events.Application.ApplicationReferenceCreated".GetHashCode() -1386151123 int "DDD.Events.Application.ApplicationReferenceCreated".GetHashCode() 1858139950 int How could this happen? I don't know if this helps, but I am running on .NET 4.0 in VS 2010 and I