public static IDeviceEmulatorManagerVMID FindDevice(IDeviceEmulatorManager manager, string id) { try { while (true) { IDeviceEmulatorManagerVMID device = FindDevice(manager.EnumerateSDKs(), id); if (device != null) return device; manager.MoveNext(); } } catch (COMException) { } return null; }
public static IDeviceEmulatorManagerVMID FindDevice(IDeviceEmulatorManager manager, string id) { try { while (true) { IDeviceEmulatorManagerVMID device = FindDevice(manager.EnumerateSDKs(), id); if (device != null) { return(device); } manager.MoveNext(); } } catch (COMException) { } return(null); }