fix major latent stack overflow error

This commit is contained in:
Michael Becker 2022-03-14 21:02:46 -04:00
parent ef9292689c
commit f3f9cf47f2
No known key found for this signature in database
GPG Key ID: DA394832305DA332

View File

@ -1,4 +1,4 @@
using System;
using System;
namespace MBS.Framework
{
public class NativeHandle
@ -17,6 +17,11 @@ namespace MBS.Framework
{
return Handle.GetHashCode();
}
public bool Equals(NativeHandle<THandle> other)
{
return this.Handle.Equals(other.Handle);
}
public override bool Equals(object obj)
{
if ((object)obj == null && (object)this == null)