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 ab267dc commit 73fcef7Copy full SHA for 73fcef7
MonoGame.Framework/Platform/SDL/SDL2.cs
@@ -168,6 +168,18 @@ public override bool Equals(object obj)
168
return version == (Version)obj;
169
}
170
171
+ public override int GetHashCode()
172
+ {
173
+ unchecked
174
175
+ int hash = 17;
176
+ hash = hash * 23 + Major.GetHashCode();
177
+ hash = hash * 23 + Minor.GetHashCode();
178
+ hash = hash * 23 + Patch.GetHashCode();
179
+ return hash;
180
+ }
181
182
+
183
public static bool operator !=(Version version1, Version version2)
184
{
185
return !(version1 == version2);
0 commit comments