What to return when overriding Object.GetHashCode() in classes with no immutable fields?
问题 Ok, before you get all mad because there are hundreds of similar sounding questions posted on the internet, I can assure you that I have just spent the last few hours reading all of them and have not found the answer to my question. Background: Basically, one of my large scale applications had been suffering from a situation where some Binding s on the ListBox.SelectedItem property would stop working or the program would crash after an edit had been made to the currently selected item. I