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

Too often, agile teams are expected to finish everything every iteration. This expectation is harmfu [...]

- mike@mountaingoatsoftware.com

When a product backlog becomes too big, it hinders agility. Discover four steps your team can take t [...]

- mike@mountaingoatsoftware.com

Pervasive myths about agile get in the way of success. It’s time to bust six of those myths. [...]

- mike@mountaingoatsoftware.com

Agile teams strive to finish work in the same iteration in which its begun. Here’s why that is so im [...]

- mike@mountaingoatsoftware.com

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

- Scott Hanselman

My Xbox user name is Glucose for a reason. This is a passion project of mine. You've likely see [...]

- Scott Hanselman

I've been really enjoying my Xbox lately (when the family is asleep) as well as some fun Retrog [...]

- Scott Hanselman

So you've been asked to parse some dates, except the years are two digit years. For example, da [...]

- Scott Hanselman

I've been working on a little idea where I'd have an app (maybe a mobile app with Xamarin [...]

- Scott Hanselman

"EditorConfig helps maintain consistent coding styles for multiple developers working on the sa [...]

Meta