Skip to content

Commit 5fa109f

Browse files
committed
Hash code
1 parent f0367d8 commit 5fa109f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Resolution/NamedType.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public struct NamedType
1111

1212
public static int GetHashCode(Type type, string name) => ((type?.GetHashCode() ?? 0) + 37) ^ ((name?.GetHashCode() ?? 0) + 17);
1313

14+
public static int GetHashCode(int typeHash, int nameHash) => (typeHash + 37) ^ (nameHash + 17);
15+
1416
public override bool Equals(object obj)
1517
{
1618
if (obj is NamedType other && Type == other.Type && Name == other.Name)

0 commit comments

Comments
 (0)