public void Dispose() { if (NativeHandle != 0) { SimDeviceLowLevel.Free(NativeHandle); } }
public static SimDevice Create(string name) { var handle = SimDeviceLowLevel.Create(name); if (handle <= 0) { return(new SimDevice()); } return(new SimDevice(handle)); }