What's New in C# 6

Play What's New in C# 6

Description

In this episode, Robert is joined by Mads Torgersen, who takes us on a tour of the new features in C# 6 that aim at making your everyday code cleaner and clearer. Mads has spoken on this subject at both Build and Ignite. Mindful of this, Robert and Mads go beyond the demos and also talk about how and why C# gained these features as well as what role the open-source .NET Compiler Platform ("Roslyn") plays.

Embed

Download

Right click to download this episode

The Discussion

  • User profile image
    Jeff

    And the extension mentioned is: https://visualstudiogallery.msdn.microsoft.com/a4445ad0-f97c-41f9-a148-eae225dcc8a5

  • User profile image
    rogreen

    @Jeff:Thanks Jeff!

  • User profile image
    nharren

    The only suggestion I would make is to add analyzers which refactor expression-bodied methods and properties (and possibly auto-properties too) into their expanded forms. Otherwise, why would you bother writing code that you know you might have to refactor later on? I would rather let code snippets generate the boilerplate for me, which I know won't have to be refactored. Though, honestly, I probably wouldn't even use those features with the analyzers because to me, having consistently structured class members makes the code easier to read.

  • User profile image
    Deactivated User

    @rogreen I wish for XAML with C++ demo using actual Visual Studio designer tool instead of code-behind as cited in the link.

  • User profile image
    Steve

    Great preview with one comment. Isn't nameof(x) a step backwards toward vs6 and vs.studio.dot.net.itus? How about json.name?

  • User profile image
    Leonardo

    Mads Torgersen is using Google Chrome instead of Microsoft Edge

  • User profile image
    Erk0n

     Like it. Thanks!!!

  • User profile image
    jacques

    Where can I get the fancy C# t-shirt ?

  • User profile image
    nberardi

    This is a really great overview.

  • User profile image
    Aron Parker

    Cool stuff :)

  • User profile image
    Ramazan Kola

    Is it becoming with .Net Framework 4.6?
    that features are awesome.

  • User profile image
    mahdi safe

    thank you

  • User profile image
    SShere

    I absolutely love the new changes.

    I am very surprised not many people have seen a problem with String.Format. I have TRIED and TRIED to use it, as I believe in using the .NET functions is the intended purpose of developing in the .NET framework, but it's annoying, error prone, and hard to maintain, adding a single variable in a specific group order results in needing to restructure the entire base string. ANNOYING & Tedious. I have seen others and have extended the string class and added functions that add more similar to printf. With the new formatting, that is beautiful. A very clean syntax approach that's beautiful, function and maintainable.

    Some of the other changes have always been tedious to me too and can't wait to get the new framework into projects!

  • User profile image
    Paul

    You guys should add the ability to write "public:", "private:" and "protected:" like in C++, so that you don't have to decorate every member with those keywords.

  • User profile image
    jcoffman412

    Love the new changes. Looking forward to discovering other refactoring tools! Also, thanks for the link to the analyzer!

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.