NRefactory
NRefactory copied to clipboard
'Convert to extension method call' does not add required parenthesis
Converting
ExtensionMethods.VisualAncestorsAndSelf(e.OriginalSource as DependencyObject)
to extension method syntax should result in:
(e.OriginalSource as DependencyObject).VisualAncestorsAndSelf()
but NRefactory currently produces
e.OriginalSource as DependencyObject.VisualAncestorsAndSelf()
If possible, this should be fixed in the Script helper class instead of dealing with this problem in each refactoring individually.