Adding an object to a dictionary… but testing for partial uniqueness
问题 I have the following object and I want a dictionary to conditionally determine if there is a duplicate. For example, in one dictionary I only care about two properties being unique for my key. In a second dictionary, I want all the properties being unique for the key. Question 1: What interfaces should I override to accomplish this? (e.g. GetHashCode, IEqualityComparer, equals operator) Question 2: What should I do if I change a property that ultimately changes the value of the key? This is