Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-107335: 'Make Method Static (Shared)' refactoring, dialog: suggest parameter name without @-symbol (C#) (without square brackets (VB))

$
0
0
Reporter Igor A (igor_a1265648516806) Igor A (igor_a1265648516806)
Created May 12, 2009 1:40:31 PM
Updated Apr 10, 2018 12:17:40 PM
Resolved Apr 10, 2018 12:17:34 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Obsolete
Type Bug
Fix version Backlog
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
Steps to reproduce:
1. Choose 'Make Method Static (Shared)' refactoring for method Func:
C#:
class SomeClass
{
void F(){}
}
VB:
Class SomeClass
Sub Func()
End Sub
End Class
Corresponding dialog appears:
2. Select 'Add 'this' parameter...' option in this dialog.
Wrong result: suggested parameter name with @-symbol (C#) ('@class') and with square brackets (VB) ('[class]') isn't valid.
It whould be better to suggest name without @-symbol and square brackets ('class') in this case or conside such name as a valid name.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>