InvalidOperationException 在 System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) 在 System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer) 在 System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames.ResolveKeyTimes() 在 System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames.FreezeCore(Boolean isChecking) 在 System.Windows.Freezable.Freeze() 在 System.Windows.Freezable.GetCurrentValueAsFrozen() 在 System.Windows.Media.Animation.Clock..ctor(Timeline timeline) 在 System.Windows.Media.Animation.AnimationTimeline.AllocateClock() 在 System.Windows.Media.Animation.Clock.AllocateClock(Timeline timeline, Boolean hasControllableRoot) 在 System.Windows.Media.Animation.Clock.BuildClockTreeFromTimeline(Timeline rootTimeline, Boolean hasControllableRoot) 在 System.Windows.Documents.CaretElement.SetBlinkAnimation(Boolean visible, Boolean positionChanged) 在 System.Windows.Documents.CaretElement.Update(Boolean visible, Rect caretRectangle, Brush caretBrush, Double opacity, Boolean italic, CaretScrollMethod scrollMethod, Double scrollToOriginPosition) 在 System.Windows.Documents.TextSelection.UpdateCaretStateWorker(Object o) 在 System.Windows.Documents.TextSelection.EnsureCaret(Boolean isBlinkEnabled, Boolean isSelectionActive, CaretScrollMethod scrollMethod) 在 System.Windows.Documents.TextSelection.System.Windows.Documents.ITextSelection.UpdateCaretAndHighlight() 在 System.Windows.Controls.Primitives.TextBoxBase.OnLostFocus(RoutedEventArgs e) 在 System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.Controls.TextBox.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) 在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) 在 System.Windows.DependencyObject.ClearValueCommon(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata) 在 System.Windows.DependencyObject.ClearValue(DependencyPropertyKey key) 在 System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) 在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) 在 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) 在 System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) 在 System.Windows.FrameworkElement.OnPresentationSourceChanged(Boolean attached) 在 System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot) 在 System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) 在 System.Windows.Window.SourceWindowHelper.ClearRootVisual() 在 System.Windows.Window.CloseWindowFromWmClose() 在 System.Windows.Window.WmClose() 在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 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) TypeInitializationException “System.Collections.Generic.Comparer`1”的类型初始值设定项引发异常。 在 System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) BadImageFormatException [C:\windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll] 有效的 typedef 或 typeref 标记应跟随在 ELEMENT_TYPE_GENERICINST 之后。 在 System.Collections.Generic.Comparer`1.CreateComparer() 在 System.Collections.Generic.Comparer`1..cctor()