Exception:不支持的格式转换,目标类型:Dict 源对象:System.String 1:1 11:1 1:11已添加了具有相同键的项。

报错信息

InvalidCastException
   在 Quicker.Domain.Actions.X.Variables.VariableHelper.ConvertToType(VarType type, Object value)
   在 Quicker.Domain.Actions.X.Variables.VariableHelper.ConvertVarDefaultValue(VarType varType, String defaultValueStr)
   在 Quicker.View.CodeEditorWindow.<>c.NwWsNldkIxP(ExpressionInputParam x)
   在 System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   在 Quicker.View.CodeEditorWindow.mJevhcYjql(Object  )
   在 Quicker.Utilities.UI.DebounceDispatcher.<>c__DisplayClass5_0.a0HXYpTqsgm(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)

ArgumentException
已添加了具有相同键的项。
   在 System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   在 System.Collections.Generic.Dictionary`2.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add(KeyValuePair`2 keyValuePair)
   在 Quicker.Domain.Actions.X.Variables.VariableHelper.ConvertToDict(Object value)
   在 Quicker.Domain.Actions.X.Variables.VariableHelper.ConvertToType(VarType type, Object value) 

解决方法

暂无解决方案。

相关信息
0 查看
2021-07-12 14:45
Quicker版本
版本 反馈次数