Exception:集合已修改; 列舉作業可能尚未執行。

报错信息 1
InvalidOperationException: 集合已修改; 列舉作業可能尚未執行。
StackTrace:
   於 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   於 System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
   於 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeDictionary(JsonWriter writer, IDictionary values, JsonDictionaryContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
   於 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
   於 Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
   於 Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)
   於 DynamicClass.TimingFunction.<>c__DisplayClass3.<.ctor>b__0(Object s, EventArgs e)
   於 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   於 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   於 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.43.47 2024-11-15 16:56 Microsoft Windows NT 10.0.19045.0