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

VB -> C#: Overloads Overrides -> ~new~ override #463

Closed
Guiorgy opened this issue Dec 13, 2019 · 0 comments
Closed

VB -> C#: Overloads Overrides -> ~new~ override #463

Guiorgy opened this issue Dec 13, 2019 · 0 comments
Assignees
Labels
VB -> C# Specific to VB -> C# conversion

Comments

@Guiorgy
Copy link

Guiorgy commented Dec 13, 2019

Input code

Public Overloads Overrides Function GetEditStyle(ByVal context As System.ComponentModel.ITypeDescriptorContext) As System.Drawing.Design.UITypeEditorEditStyle
    Return UITypeEditorEditStyle.DropDown
End Function

Erroneous output

public new override UITypeEditorEditStyle GetEditStyle(System.ComponentModel.ITypeDescriptorContext context)
{
    return UITypeEditorEditStyle.DropDown;
}

Expected output

public override UITypeEditorEditStyle GetEditStyle(System.ComponentModel.ITypeDescriptorContext context)
{
    return UITypeEditorEditStyle.DropDown;
}

Details

  • Product in use: VS extension
  • Version in use: 7.3.0.0
  • Method can't be marked as new and override at the same time. There should be no new to begin with.
@Guiorgy Guiorgy added the VB -> C# Specific to VB -> C# conversion label Dec 13, 2019
@GrahamTheCoder GrahamTheCoder changed the title VB -> C#: _Add a short description_ VB -> C#: Overloads Overrides -> ~new~ override Dec 13, 2019
@GrahamTheCoder GrahamTheCoder self-assigned this Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VB -> C# Specific to VB -> C# conversion
Projects
None yet
Development

No branches or pull requests

2 participants