diff --git a/Core/InteropServices/BOOL.cs b/Core/InteropServices/BOOL.cs index 1576e8c6..c1bae4ef 100644 --- a/Core/InteropServices/BOOL.cs +++ b/Core/InteropServices/BOOL.cs @@ -61,6 +61,11 @@ public struct BOOL : IComparable, IComparable, IComparable, IConvert /// The result of the conversion. public static implicit operator IntPtr(BOOL value) => (IntPtr)(int)value; + /// Performs an explicit conversion from to . + /// The value. + /// The result of the conversion. + public static implicit operator BOOL(IntPtr value) => value != IntPtr.Zero; + /// Indicates whether two instances are not equal. /// The first integral size to compare. /// The second integral size to compare.