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

[...]

- mike@mountaingoatsoftware.com

Due to the coronavirus outbreak preventing some people from attending live classes I will be running [...]

- mike@mountaingoatsoftware.com

St. Patrick drove the snakes out of Ireland. What would you like to drive out of your agile process? [...]

- mike@mountaingoatsoftware.com

Establishing a common baseline allows multiple teams to estimate consistently with story points. [...]

- mike@mountaingoatsoftware.com

Certified Scrum Trainer Lance Dacy and I discuss some trends we’re noticing and ponder the future of [...]

- Scott Hanselman

I saw this over on the Microsoft Remote Desktop Uservoice Allow ability to choose subset of local mo [...]

- Scott Hanselman

Well that sucks. That's my podcast website with an F rating from SecurityHeaders.com. What [...]

- Scott Hanselman

The Windows Terminal is free and in the Windows Store and you should go make sure you have the lates [...]

- Scott Hanselman

Over the years I've collected a few webcams, some quality and some not. If you're interest [...]

- Scott Hanselman

Buckle up kids, as this is a tale. As you may know, I have a lovely podcast at https://hanselminutes [...]

Meta