我正在尝试在我的 monotouch 应用程序中使用 ConcurrentDictionary。在我尝试在我的 monotouch 应用程序中使用 ConcurrentDictionary 时,一切运行正常。在模拟器中一切运行正常,但是当我在 iPad 中运行时,在创建使用它的类的实例时出现以下异常。有什么想法吗?
System.ExecutionEngineException: Attempting to JIT compile method 'System.Collections.Concurrent.SplitOrderedList`2<string, System.Collections.Generic.KeyValuePair`2<string, object>>:.ctor (System.Collections.Generic.IEqualityComparer`1<string>)' while running with --aot-only.
at System.Collections.Concurrent.ConcurrentDictionary`2[System.String,System.Object]..ctor (IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0
at System.Collections.Concurrent.ConcurrentDictionary`2[System.String,System.Object]..ctor () [0x00000] in <filename unknown>:0