Am I running on an Emulator or a Device
问题 Is there a way (using managed code hopefully) to find out if I am running on an Emulator or an actual physical device? I am looking for something like this: public class BarcodeScannerFactory { public override BarcodeScanner GetBarcodeScanner() { if (IsARealDevice()) <---------------------------+ return new SymbolBarcodeScanner(); | else | return new FakeBarcodeScanner(); | } | } | | // This is the method I need to make ----------------+ (NOTE: It occurs to me that Windows Phone 7 has been