diff --git a/MonoGame.Framework/Platform/SDL/SDL2.cs b/MonoGame.Framework/Platform/SDL/SDL2.cs index 92742ed75b2..949eb52db13 100644 --- a/MonoGame.Framework/Platform/SDL/SDL2.cs +++ b/MonoGame.Framework/Platform/SDL/SDL2.cs @@ -168,6 +168,18 @@ public override bool Equals(object obj) return version == (Version)obj; } + public override int GetHashCode() + { + unchecked + { + int hash = 17; + hash = hash * 23 + Major.GetHashCode(); + hash = hash * 23 + Minor.GetHashCode(); + hash = hash * 23 + Patch.GetHashCode(); + return hash; + } + } + public static bool operator !=(Version version1, Version version2) { return !(version1 == version2);