Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C#: variable called int should be displayed as @int #600

Closed
0xd4d opened this issue Apr 27, 2015 · 4 comments
Closed

C#: variable called int should be displayed as @int #600

0xd4d opened this issue Apr 27, 2015 · 4 comments

Comments

@0xd4d
Copy link
Contributor

0xd4d commented Apr 27, 2015

ILSpy version 2.3.0.1834

// Class System.IntPtr
private IntPtr(SerializationInfo info, StreamingContext context)
{
    long int = info.GetInt64("value");
    if (IntPtr.Size == 4 && (int > 2147483647L || int < -2147483648L))

It should be @int above since int is a C# keyword.

NRefactory was updated and some of the old code doesn't seem to have been included in the new NRefactory.

@greenozon
Copy link

same issue with other keywords, eg:

latest version:

                bool checked = this.useProxyAuthenticationChkBox.Checked;
                this.proxyUsernameTextBox.Enabled = checked;
                this.proxyPasswordTextBox.Enabled = checked;

previous (OK) version:

                bool @checked = this.useProxyAuthenticationChkBox.Checked;
                this.proxyUsernameTextBox.Enabled = @checked;
                this.proxyPasswordTextBox.Enabled = @checked;

@greenozon
Copy link

same issue with string:

string string = Resources.ResourceManager.GetString(..........

@greenozon
Copy link

and other types:
eg:

get
            {
                object object = Resources.ResourceManager.GetObject("button_3", Resources.resourceCulture);
                return (Bitmap)object;
            }

@Lordron
Copy link

Lordron commented Jul 7, 2015

#626

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants