What's New in Visual Basic 14

Sign in to queue

The Discussion

  • User profile image
    ljw1004

    Clarification: two of the features mentioned "NameOf" and "String Interpolation" aren't yet in VS2015 Preview; they'll come along presently (prior to the final release of VS2015).

  • User profile image
    jvs_ca

    @ljw1004:Thank you for telling me. I was trying to use string interpolation with no success.

  • User profile image
    marceldevg

    Congrats Lucian, finally some VB language improvements with this release i've been waiting for!

    Marcel

  • User profile image
    LarHel

    Want in production now !

    Especially ? for nullcheck andalso nameOf

     

     

  • User profile image
    LarHel

    Can You target older framworks when using the new compiler ?

    For instance I would like to target framework 4 or Framework 4.5.2 ?

    Or does it require 4.6(?)  ?

     

  • User profile image
    ljw1004

    @LarHel, yes, all features work fine when down-targeting.

     

    There's one corner of string interpolation to mention... we'll let you write

    Dim x As FormattedString = $"hello {p.Age:0.00}"
    x.FormatString  ' String with value "hello {0:0.00}"
    x.Args    ' Object array with one element, p.Age

    This will only work if the "FormattedString" type is present. This will be built into .NET4.6, but it will also be available in a NuGet package for people targeting older versions of the framework. Similar to what we did with Microsoft.Bcl.Async

  • User profile image
    Chris

    Love Wishick's energy, and passion. Simply exudes through the video.

Add Your 2 Cents