gpt4 book ai didi

windows-mobile - 我是在模拟器还是设备上运行

转载 作者:行者123 更新时间:2023-12-04 06:39:03 26 4
gpt4 key购买 nike

有没有办法(希望使用托管代码)来确定我是在模拟器还是实际的物理设备上运行?

我正在寻找这样的东西:

public class BarcodeScannerFactory
{
public override BarcodeScanner GetBarcodeScanner()
{
if (IsARealDevice()) <---------------------------+
return new SymbolBarcodeScanner(); |
else |
return new FakeBarcodeScanner(); |
} |
} |
|
// This is the method I need to make ----------------+

(注意:在我看来,Windows Phone 7 已与下面的大多数标签混为一谈。然而,这个问题是针对 Window Mobile 6.5 的。)

最佳答案

东西along these lines你的意思是?

关于windows-mobile - 我是在模拟器还是设备上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4504431/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com