Tech Off Post

Single Post Permalink

View Thread: is 'new object().property' or 'new object().method()' a good idea?
  • User profile image
    shuff1203

    Dr Herbie wrote:
    
    I would see

    new object().SomeMethod()

    as a 'smell' indicating that SomeMethod should be static ...

    Herbie



    Can this even be done in VB.NET?

    I'm trying to convert some sample code from c# that says:

    New Application().run(f)

    But that doesnt' work in VB.NET.  Is there an equivalant?