NRefactory icon indicating copy to clipboard operation
NRefactory copied to clipboard

'Convert to extension method call' does not add required parenthesis

Open dgrunwald opened this issue 11 years ago • 0 comments

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.

dgrunwald avatar May 02 '14 14:05 dgrunwald