public void Dispose() { MemUtil.Free((IntPtr)NativePointer); NativePointer = null; GC.SuppressFinalize(this); }
public SemaphoreCreateInfo() { NativePointer = (Unmanaged.SemaphoreCreateInfo *)MemUtil.Alloc(typeof(Unmanaged.SemaphoreCreateInfo)); NativePointer->SType = StructureType.SemaphoreCreateInfo; }