I guess the topic title says it all.
I have a simple class, with two strings and a date time, and would like to prevent duplicates from appearing in a collection, so need to do a quick compare.
Is there a reason Equals() exists when we have the ++ operator? Whats the difference and which is the preferred to use?
I have a simple class, with two strings and a date time, and would like to prevent duplicates from appearing in a collection, so need to do a quick compare.
Is there a reason Equals() exists when we have the ++ operator? Whats the difference and which is the preferred to use?