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