From 4e771de74afa1a68659174f82461ddd9e18b946f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sat, 1 Jan 2022 00:06:26 +0100 Subject: [PATCH] feat: implement GetHashCode in NameString --- Core/NosSmooth.Packets/Common/NameString.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/NosSmooth.Packets/Common/NameString.cs b/Core/NosSmooth.Packets/Common/NameString.cs index 2abb16e..5a5c410 100644 --- a/Core/NosSmooth.Packets/Common/NameString.cs +++ b/Core/NosSmooth.Packets/Common/NameString.cs @@ -100,4 +100,10 @@ public class NameString return Name.Equals(nameString.Name); } + + /// + public override int GetHashCode() + { + return Name.GetHashCode(); + } } \ No newline at end of file -- 2.48.1