Giter Site home page Giter Site logo

Comments (7)

paul1956 avatar paul1956 commented on July 23, 2024

@DualBrain I can't detect that, the problem is the second using should just be "Using parser as new TextFieldParser(path))" and that I might be able to fix.

from csharptovb.

paul1956 avatar paul1956 commented on July 23, 2024

I fix the specific issue and other places where I should have used

Dim X As New Y

Fix in New in 5.0.0.17/5.0.0.8

from csharptovb.

DualBrain avatar DualBrain commented on July 23, 2024

You might have misunderstood what I was trying to convey.

public void SomeSuch()
{

    {
        int x = 1;
    }
    // ...
    {
        int x = 1;
    }
}

There are two different instances of x in their own individual variable scopes due to the curly brace "blocks". In VB this can be done using:

Public Sub SomeSuch

    If True Then
        Dim x = 1
    End If
    If True Then
        Dim x = 1
    End If

 End Sub

The question I was asking was related to the curly brace sections so that they could be detected (if possible) and turned into the "do nothing" (except create variable scoping) If / End If blocks.

from csharptovb.

DualBrain avatar DualBrain commented on July 23, 2024

Also, right now... if I attempt to convert this:

Public Sub SomeSuch()
    Dim x As Integer = 1
    ' ...
     Dim x As Integer = 1
    ' ...
End Sub

Which is obviously not a valid conversion. ;-)

from csharptovb.

paul1956 avatar paul1956 commented on July 23, 2024

@DualBrain Fixed in 5.0.0.18/5.0.0.10, please review

from csharptovb.

DualBrain avatar DualBrain commented on July 23, 2024

Excellent work!

from csharptovb.

paul1956 avatar paul1956 commented on July 23, 2024

@DualBrain thanks. Very odd the original code had a test identical to your your simplified example. Which I had to fix for some reason whoever wrote original code that it was OK to define a variable twice.

from csharptovb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.