record型が導入された! C# 9.0からrecord型が導入されましたので、その使い方の一例として、Dictionaryのキーとして使うことを本稿では考えてみます。 これまでは、Dictionaryのキーとしてプリミティブな型(stringとか)以外のものを使いたい場合は、classを実装し ...
Please consider reopening this, to add an example on how users can override the behavior of Equals and GetHashCode? Just to be clear, for users, I don't find it clear enough in the documentation how ...