質問編集履歴
1
コードミス
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();
|