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

If you’ve estimated with Planning Poker, you may very well have used cards with either the FIbonacci [...]

- mike@mountaingoatsoftware.com

For many teams, the sprint review has run its course and it’s time to stop doing them. Blasphemy? Ma [...]

- mike@mountaingoatsoftware.com

In an ideal world, a Scrum team could perform the work of its sprints entirely uninterrupted. Produc [...]

- mike@mountaingoatsoftware.com

Do Scrum long enough and someone will suggest stopping the daily scrums. Here’s how to reply. [...]

- mike@mountaingoatsoftware.com

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

- Scott Hanselman

Microsoft released a nice new ligature-friendly open source font this week called Cascadia Code. It [...]

- Scott Hanselman

I was reading an older post in an emulator forum where someone was asking for a Playstation 1 (PSX) [...]

- Scott Hanselman

I'm pretty happy with Windows 10 as my primary development box. It can do most anything I want, [...]

- Scott Hanselman

It's early days (preview) but there's now a Terminal integrated into Visual Studio! Taking [...]

- Scott Hanselman

Yesterday the Windows Team announced the first preview and code release of PowerToys for Windows 10. [...]

Meta