We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a27a95e commit da3568cCopy full SHA for da3568c
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