DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.1.1" />

 BitwiseOr

struct BitwiseOr : ISupplier<IntPtr, IntPtr, IntPtr>
using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace DotNext.Threading { [StructLayout(LayoutKind.Auto)] internal readonly struct BitwiseOr : ISupplier<IntPtr, IntPtr, IntPtr> { [return: System.Runtime.CompilerServices.NativeInteger] unsafe IntPtr ISupplier<IntPtr, IntPtr, IntPtr>.Invoke([System.Runtime.CompilerServices.NativeInteger] IntPtr x, [System.Runtime.CompilerServices.NativeInteger] IntPtr y) { return (IntPtr)(void*)((long)x | (long)y); } } }