What's New in C# 6.0

Sign in to queue

Description

C# 6 adds a lot of small but useful language features to remove boilerplate and clean up your code. This video takes you on a whirlwind tour through all the new language constructs

Tag:

C#

Embed

Download

Download this episode

The Discussion

  • User profile image
    Manikanta

    when u guys will upload course vedios for C# 6.0 and .net 2015 for beginners ??

  • User profile image
    alevykh

    Hmm.. Very fast speaking. For non-English users (like me) very hard to understand of speech.

  • User profile image
    JohnBr

    On the other hand, I liked this fast version.
    C# 6 in under 8 minutes, so I could see it immediately.

  • User profile image
    Clouds

    fantasy,but i cannot understand what he say (~ ̄▽ ̄)→))* ̄▽ ̄*)o

  • User profile image
    eduardobr

    "In current C#, auto properties must have setters".

    That's not true. I guess you might be talking about the code generated by the compiler that now is different (?)

  • User profile image
    Secret V

    Brilliant stuff. I really like the new read-only properties and the ?. operator (been waiting for that one for a while now!)!

  • User profile image
    Azarien

    I'm not a native English speaker and I understood every word he said.

    By the way, the ?. operator seems not to work in VS2015 RTM.

  • User profile image
    Anders

    @eduardobr:

    Load up VS2013 and try the following: object test { get; }
    You will get a compile time error stating that auto properties must define both get and set accessors.

  • User profile image
    LloydFromOz

    Brilliant simplifications!!

  • User profile image
    JacekS

    Good job, but I didn't get the puprose of "when" in "catch", can anyone exlain that?

  • User profile image
    Rynas
  • User profile image
    Aryan Mann

    Oh god the null conditional operator is one of those things that I wouldn't be able to live without now.

  • User profile image
    hugues tamo

    Oh my god is really cool

  • User profile image
    mkofler

    Great improvements! Love it!

  • User profile image
    Paul885

    Download instructions do not work in Edge - there is no "Save as..." option.

  • User profile image
    Jasmin Akther Suma

    Liked it too much...very fast presentation of some excellent good features...coding is being fun day by day using c#...love it...:-)

  • User profile image
    simpleminds

    Thank you so much. God bless ...

  • User profile image
    catom

    what do you say?

  • User profile image
    xiaoliu

    why not Chinese video?

  • User profile image
    GiG

    Excellent additions to C# and very clear presentation style. String interpolation and null coalescing operator are highlights for me.

  • User profile image
    underceej

    Fast, concise, to the point, excellent coverage.

    Chuckled at the Elvis comment ;)

    Thanks!

  • User profile image
    David

    I'm pretty sure the "Elvis operator" is this one ?:

    Great video, otherwise!

  • User profile image
    starless

    I love C#! What an elegant language. It has a inherent beauty in it that no other computer language comes close to match. It's so nice when you look at your code and it feels good, Unlike C++, where everything looks cryptic and esoteric, or Java, which is horribly verbose. Looking at endless streams of lines of code for hours unending is much more pleasant when they are in C#.

  • User profile image
    Epic HeHe

    I love C#!

  • User profile image
    Mario

    Was wondering of a function such as....
    Say there is 6 controls and you want to set all there text values to blank. Would it be possible to add a function like..
    Control1,Control2,Control3,Control4,Control5.Text = "";

  • User profile image
    eduardo padilla

    I disagree with the direction the language is taking. You are creating a sub-language to replace boiler plate patterns. Why you guys don't use a text replacement mechanism (Called Macros...as in the Macro Assemblers) to do all this new obfuscation stuff that you guys added to C# 6?

    The text replacement mechanism could be used in all the computer languages, even word, excel, any editor... Please, let us feel that we don't have to re-learn, and re-learn, and re-learn, every time you guys make a new release. Please stop the brick level enhancements, and give us house-level or building-level enhancements that are practical, yes practical and useful, and would save us time and costs in the implementation of in our applications.

    I posted this comment in the VS thread:

    In the assembler days, there was the Macro Assembler. Macros were used as an in-line text replacement mechanism that would replace several lines of assembly code, into a single macro line. You created your macro libraries and, instead of writing large number of cryptic lines of assembly code, you would use macros to replace those lines.
    The benefit was great, your code became clear, safe and COMPACT; your code writing efficiency was multiplied; your errors were reduced; your file sizes were reduced, simple to read. Instead of seeing, for example, 100 lines of cryptic source code, you would see a couple of macro lines.

    Note: The macro concept described above offered a large number of text replacement mechanisms.

    Macros for automating the GUI are good, but not as good as macros for code text replacement. Why this extremely useful text replacing mechanism
    is not available as part of HTML, Javascript, XAML? or any of the languages, c# VB.NET? You guys have the resources to do that.
    Text replacement macros would be one of the best tools Visual Studio could offer to the software engineering community.

  • User profile image
    John

    I love C#, but C# supports a difficult to use and an error-prone Concurrency model. The await and thread synchronization are not the right idea. It looks simple, but it isn't simple to use. The C# development team should have a look at the Waza concurrency model. This is so much better. It provides *true* concurrency that will make parallel programming in C# much simpler. Waza is based on a excellent formal foundation (mathematics/CSP). The semantis are clean and correct. This allows you to model-check your applications to find pathological problems, such as deadlocks, livelocks, race conditions and incomplete exception paths. These problems are hard to find with testing. Waza can be found at www.wazalogic.com.

  • User profile image
    Fanzonyan

    Why "onChange?.Invoke(...)"?
    Why not "onChange?(...)"?

  • User profile image
    cjprindle

    For non-native English speakers, you can click on the Settings icon in the video and slow down the playback speed. His voice is still very clear, just a bit slower!

  • User profile image
    ogamespec

    Ok, turn c# to perl#...
    Dislike it.

  • User profile image
    Mohsen

    Good job on copying other languages again, but I love you C#

  • User profile image
    micheleceo

    @alevykh:You can play slower, Is what i did for some pecies.

  • User profile image
    bio3c

    you guys should add an option for uploading subtitles for English and other languages, i would gladly contribute.

  • User profile image
    havindcfun1​2345

    In VS 2015 I can't even get C # to run correctly while building a website since update 3. I place objects/controls on .ASPX page when I go to the codefile all the controls are grayed out from the pick list.  When I select a grayed out control I get a message definition of object is hidden.  VB.NET works fine what the heck happened with update 3 did something change in C# 6 that caused this.  I have tried to reinstall and removing all associated files with a fresh build. Nothing I can find works on line does this for any C# project.  

  • User profile image
    raylitalo

    English being my native tongue, I enjoyed this short, concise presentation very much.  Thank you very much.

Add Your 2 Cents