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

When estimating in story points, teams should think in terms of ranges and rounding up. Here’s why. [...]

- mike@mountaingoatsoftware.com

Batman would make the perfect Scrum Master. Once he eliminates crime in Gotham City, I plan on offer [...]

- mike@mountaingoatsoftware.com

It can sometimes be a challenge to get people to attend and then participate in sprint reviews. Here [...]

- mike@mountaingoatsoftware.com

The standard “As a...I...so that…” user story template has stood the test of time. Here’s why each o [...]

- mike@mountaingoatsoftware.com

From helping teams understand the boundaries of self organization to creating safety around things l [...]

- Scott Hanselman

There's some interesting stuff quietly happening in the "Console App" world within op [...]

- Scott Hanselman

As I've mentioned lately, I'm quietly moving my Website from a physical machine to a numbe [...]

- Scott Hanselman

I'm quietly moving my Website from a physical machine to a number of Cloud Services hosted in A [...]

- Scott Hanselman

I'm doing a quiet backend migration/update to my family of sites. If I do it right, there will [...]

- Scott Hanselman

Technical Debt has a way of sneaking up on you. While my podcast site and the other 16ish sites I ru [...]

Meta