Beispiel #1
0
 public void Dispose()
 {
     if (NativeHandle != 0)
     {
         SimDeviceLowLevel.Free(NativeHandle);
     }
 }
Beispiel #2
0
        public static SimDevice Create(string name)
        {
            var handle = SimDeviceLowLevel.Create(name);

            if (handle <= 0)
            {
                return(new SimDevice());
            }
            return(new SimDevice(handle));
        }