public static bool operator ==(HandleBase a, HandleBase b)
{
// If both are null, or both are same instance, return true.
if (Object.ReferenceEquals(a, b))
{
return true;
}
// If one is null, but not both, return false.
if (((object)a == null) || ((object)b == null))
{
return false;
}
// Return true if the handle matches
return (a.rawPtr == b.rawPtr);
}
public static bool operator !=(HandleBase a, HandleBase b)