15 Cool New Features in C# 6.0

Home » C# » 15 Cool New Features in C# 6.0
Photograph of a Save the Day with C# Mug

Version 1 of C# was released in 2002. Now with the Rosyln release we are at version 6.

I remember the furore when Microsoft brought out its Java product and all the criticism if the Microsoft “Extensions” to the language. I believe C# was the result of this.

Who would have thought that a C based language would ever be mainstream? I once created an entire business app in C using Raima data manager as the database layer and it wasn’t that easy (70,000 lines of fairly non repetitive well structured code).

Anyway, I recently read an article on 15 cool new features in C# 6.0 and would like to share it with you.

I must say though, that I am not American and not much in my world is really “Cool”. A world war 2 Spitfire is cool, maybe the iPhone is cool, maybe having my own jet (or light aircraft for that matter if it could get me above the majority of the weather here in the UK) is cool, but not much else. About the only C# feature I can think of being cool is LINQ. I really paid attention in 2007 when LINQ came out, this has developed into one of the most cool features in a language ever. Why? Because finally developers were starting to pay attention to the fact that code needs to be readable and succinct, it has to convey the intent of the programmer, and thus the design of the system. We are not all like a chinese university professor who I had in my team once, who could spend 24 hours non stop reading code from start to finish and then tell you all about the system, how it worked, where its weaknesses were etc. without actually running the code once. The rest of us need readable code.

But I digress, anyway here is the article: http://immortalcoder.blogspot.in/2015/09/15-cool-new-features-in-c-6.html. I think the most useful feature for me is 5. Null-conditional operators which will remove quite a bit of repetitive if (value != null) kind of code. I might be getting carried away here given that only two people read this blog (and one of them is my friends dog), but if you would like to comment on what you think are the coolest features in C# 6.0, well that would be cool…

About Phil

I have been working as a software developer since 1983. This blog could have been called "From Fortran 77, C and Cobol to C# in 20 (not so) easy years", but it doesn't sound quite right somehow. Besides I'm talking about what's happened since 2003, not before!

Leave a Reply

Your email address will not be published.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">




Top Posts & Pages

Categories

Recent Posts

Recent Comments

Archives

Blogroll

  • Mike Cohn's Blog
  • Scott Hanselman's Blog
- mike@mountaingoatsoftware.com

I wrote 25 blog posts during 2018. In case you missed some of them, here are the most popular. [...]

- mike@mountaingoatsoftware.com

The iterative and incremental nature of agile makes an agile approach seemingly less compatible with [...]

- mike@mountaingoatsoftware.com

Velocity can be great for predicting how much a team can deliver in a given period. But it needs to [...]

- mike@mountaingoatsoftware.com

Succeeding with agile isn’t just about knowing where to start, it’s about knowing where to go next—w [...]

- mike@mountaingoatsoftware.com

Here’s what to do when facing a complex user story that cannot be split but is too large for one spr [...]

- Scott Hanselman

As I said on social media today, it's 2019 and I'm updating the Firmware on a Zune, fight [...]

- Scott Hanselman

I'm going to try to finished my Relationship Hacks book in 2019. I've been sitting on it t [...]

- Scott Hanselman

My son and I were working on an Adafruit NeoTrellis M4 Mainboard over the holidays. This amazing lit [...]

- Scott Hanselman

I'm on vacation for the holidays and I'm finally getting some time to play video games. I [...]

- Scott Hanselman

I blogged about DOSBox five years ago! Apparently I get nostalgic around this time of year when I [...]

Meta