, , . .
: " ". , " " - , - . ( , .NET docs " " . OO - , .)
, , , . , . . ; "", . , , "" .
, - "": , . , , , , . . : "" ; , .
, , " " "".
" ", Equals GetHashCode. Equals true, . GetHashCode ; "", -.
If they are “objects,” implementations Equalsand GetHashCodethat you inherit from System.Object will use reference equality to determine if the two objects are “the same” (and therefore should be treated as the same key in the dictionary) that you want. Thus, until you inherit something that itself overrides Equalsand GetHashCodeyou do not need to do anything special to use the "object" as a key.
source
share