Pull Member Up refactoring throws an InvalidOperationException exception in Visual Basic code with the following stack trace:
System.InvalidOperationException : Failed to compare two elements in the array. ---> System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at DevExpress.CodeAnalysis.VisualBasic.Refactorings.PullMemberUp.MemberSortingComparer.MemberKindComparer.Compare(DeclarationStatementSyntax x,DeclarationStatementSyntax y)
at DevExpress.CodeAnalysis.VisualBasic.Refactorings.PullMemberUp.MemberSortingComparer.Compare(DeclarationStatementSyntax x,DeclarationStatementSyntax y)
at System.Collections.Generic.ArraySortHelper`1.InsertionSort(T[] keys,Int32 lo,Int32 hi,IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.IntroSort(T[] keys,Int32 lo,Int32 hi,Int32 depthLimit,IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.IntrospectiveSort(T[] keys,Int32 left,Int32 length,IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys,Int32 index,Int32 length,IComparer`1 comparer)
--- End of inner exception stack trace ---
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys,Int32 index,Int32 length,IComparer`1 comparer)
at System.Array.Sort[T](T[] array,Int32 index,Int32 length,IComparer`1 comparer)
at System.Collections.Generic.List`1.Sort(Int32 index,Int32 count,IComparer`1 comparer)
at async DevExpress.CodeAnalysis.VisualBasic.Refactorings.PullMemberUp.PullMemberUpRefactoring.PullMemberUp(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.VisualBasic.Refactorings.PullMemberUp.PullMemberUpRefactoring.ApplyChangeManager(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.TargetPicker.TargetPickerRegistrator.DoRegistration(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.RegisterRefactoring(<Unknown Parameters>)
at async DevExpress.CodeAnalysis.Refactorings.RefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)