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#: Cannot convert OnErrorResumeNextStatementSyntax #838

Closed
code-lime opened this issue Feb 14, 2022 · 1 comment
Closed

VB -> C#: Cannot convert OnErrorResumeNextStatementSyntax #838

code-lime opened this issue Feb 14, 2022 · 1 comment
Labels
VB -> C# Specific to VB -> C# conversion

Comments

@code-lime
Copy link

VB.Net input code

ReadOnly Property MouseHit As Vector3
        Get
#error Cannot convert OnErrorResumeNextStatementSyntax - see comment for details
                /* Cannot convert OnErrorResumeNextStatementSyntax, CONVERSION ERROR: Conversion for OnErrorResumeNextStatement not implemented, please report this issue in 'On Error Resume Next' at character 916


                Input:
                            On Error Resume Next

                 */
            On Error Resume Next
            Update(Pos.X, Pos.Y)
            Dim HeadIndex(1) As Single
            Dim BodyIndex(1) As Single
            HeadIndex(0) = (4 - CamPos.Z) / CurrentRay.Z
            BodyIndex(0) = (2 - CamPos.Z) / CurrentRay.Z
            /*any code*/
            Return Result
        End Get
    End Property

Details

  • Product in use: VS extension
  • Version in use: 8.4.5.0
@code-lime code-lime added the VB -> C# Specific to VB -> C# conversion label Feb 14, 2022
@GrahamTheCoder
Copy link
Member

Thanks, I'll combine this with #426
Follow that for any updates, though Resume Next is one of the hardest features to neatly convert

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