Windows mobile 我是在模拟器上运行还是在设备上运行
是否有一种方法(希望使用托管代码)来确定我是在模拟器上运行还是在实际的物理设备上运行 我在找这样的东西:Windows mobile 我是在模拟器上运行还是在设备上运行,windows-mobile,compact-framework,emulation,Windows Mobile,Compact Framework,Emulation,是否有一种方法(希望使用托管代码)来确定我是在模拟器上运行还是在实际的物理设备上运行 我在找这样的东西: public class BarcodeScannerFactory { public override BarcodeScanner GetBarcodeScanner() { if (IsARealDevice()) <---------------------------+ return new SymbolBarcodeScanner();
public class BarcodeScannerFactory
{
public override BarcodeScanner GetBarcodeScanner()
{
if (IsARealDevice()) <---------------------------+
return new SymbolBarcodeScanner(); |
else |
return new FakeBarcodeScanner(); |
} |
} |
|
// This is the method I need to make ----------------+
公共类条码扫描工厂
{
公共覆盖条形码扫描仪GetBarcodeScanner()
{
如果(isRealDevice())你是什么意思?正是我需要的。谢谢!