对于iPhone,我可以通过执行以下操作检测到应用程序在模拟器中运行:
var isSumlator = ObjCRuntime.Runtime.Arch == ObjCRuntime.Arch.SIMULATOR;
Run Code Online (Sandbox Code Playgroud)
在Xamarin.Android中检测模拟器的最佳等价物是什么?
var result = myObject?.GetType();
Run Code Online (Sandbox Code Playgroud)
在这种情况下,如果myObject为null ,那么Result的值是多少?