TypeInitializationException: “TranslationService”的类型初始值设定项引发异常。 --TypeName: TranslationService StackTrace: 在 DynamicClass.TranslationService.TranslateToEnglish(String chineseText) 在 DynamicClass.IconifyWindow.<OnSearchClick>d__1a.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 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: 已添加了具有相同键的项。 --Message: 已添加了具有相同键的项。 StackTrace: 在 System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) 在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) 在 DynamicClass.TranslationService..cctor()