teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

コードミス

2021/10/05 02:53

投稿

ry188472
ry188472

スコア74

title CHANGED
File without changes
body CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  ```c#
5
5
  public record Sample(string Id, string Address);
6
- public Comp : IEqualityComparer<Sample>
6
+ public class Comp : IEqualityComparer<Sample>
7
7
  {
8
8
  public bool (Sample? x, Sample? y) => x?.Address == y?.Address;
9
9
  public int GetHashCode([DisallowNull] Sample obj) => obj.GetHashCode();