brutal/brutal.interop/Brutal.Interop/IInteropHandle.cs
2026-10-15 14:12:02 +13:00

11 lines
352 B
C#

namespace Brutal.Interop;
/// <summary>
/// Describes an object that can be marshalled between managed and unmanaged code via a typed handle.
/// </summary>
public interface IInteropHandle<THandle, out TSelf> : INullable
where THandle : unmanaged
where TSelf : struct, IInteropHandle<THandle, TSelf>
{
THandle Pointer { get; init; }
}