brutal/Brutal.Interop/IInteropHandle.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +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; }
}