/// Returns a value indicating whether this instance is equal to a specified object.
/// </summary>
/// <param name="obj">An object to compare with this instance.</param>
/// <returns><c>True</c> if <paramref name="obj"/> is an instance of <see cref="void_ptr"/> and equals the value of this instance; otherwise, <c>False</c>.</returns>
publicoverrideboolEquals(objectobj)
{
if(!(objisvoid_ptr))
returnfalse;
returnEquals((void_ptr)obj);
}
/// <summary>
/// Returns a value indicating whether this instance is equal to a specified <see cref="void_ptr"/> value.
/// </summary>
/// <param name="other">A <see cref="void_ptr"/> value to compare to this instance.</param>
/// <returns><c>True</c> if <paramref name="other"/> has the same value as this instance; otherwise, <c>False</c>.</returns>
publicboolEquals(void_ptrother)
{
return_pointer==other._pointer;
}
/// <summary>
/// Returns the hash code for this instance.
/// </summary>
/// <returns>A 32-bit signed integer hash code.</returns>
publicoverrideintGetHashCode()
{
return_pointer.GetHashCode();
}
/// <summary>
/// Gets a value that indicates whether the two argument values are equal.