We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c7f7a9 commit 68c5894Copy full SHA for 68c5894
src/Foundatio.Repositories/Id.cs
@@ -5,9 +5,12 @@
5
6
namespace Foundatio.Repositories;
7
8
+#if NETSTANDARD
9
public struct Id : IEquatable<Id>
10
+#else
11
+public record struct Id
12
+#endif
13
{
-
14
public static readonly Id Null = new();
15
16
public Id(string id, string routing = null)
@@ -30,6 +33,7 @@ public override string ToString()
30
33
return String.Concat(Routing, "-", Value);
31
34
}
32
35
36
37
public bool Equals(Id other)
38
39
if (ReferenceEquals(null, other)) return false;
@@ -61,6 +65,7 @@ public override int GetHashCode()
61
65
62
66
return !Equals(left, right);
63
67
68
64
69
70
71
public class Ids : List<Id>
0 commit comments