My C# 6.0 Wish List

Wednesday, June 5, 2013

I’m on a wish list streak, so why not wish myself new features in C# 6.0?There has been no public talk about C# 6.0 (or the next version of .NET, for that matter). Still, I imagine someone is working on that at Microsoft (maybe not Anders, who seems to prefer the JavaScript world, with his TypeScript language); hopefully, others have taken the lead for the future of C#.Firstly, it must be well understood that adding features to a language is a big deal. Once added, these can never be removed. Whereas features to the .NET framework itself can be...
10 comments

C# Extension Methods and Fluent Interfaces

Thursday, February 7, 2013

The idea of fluent interfaces is not new, and has many forms. The basic idea is to use a single statement to encompass a series of operations that are natural, or at least simple, to use. There are very few fluent interfaces in .NET – the most well known, which has some fluent interface semantics, is the System.Text.StringBuilder class. Here’s a simple example: public static string BuildInfo(Process process) { return new StringBuilder("Process ") .AppendLine(process.ProcessName) .Append("Started at ").AppendLine(process.StartTime.ToLongTimeString()) ...
one comment

My Introduction to .NET 4 and C# 4 Session

Saturday, September 4, 2010

About a week ago I presented an introduction to .NET 4 and C# 4.0 at Microsoft offices. Thank you all for attending! Here are the slides and demos. Intro to .NET 4 and C# 4 PPT Intro to .NET 4 and C# 4 Demos
no comments

C# 4.0 New Features Videos

Wednesday, November 25, 2009

Recently, I’ve given several sessions on “What’s new in C# 4.0?” in an MS Open House and the Nes Tziona User group. For those unable to attend, or just want some refreshing, I’ve created 3 videos on the main C# 4 features (“Optional and named arguments”, “dynamically typed objects” and “generic variance”). You can watch those on the Hi-Tech TV web site. Enjoy!
no comments

Open House on C# 4.0 (Take 2)

Thursday, October 29, 2009

Yesterday, I delivered a session titled “What’s new in C# 4.0?” after a session by Guy Burstein on “First look at Visual Studio 2010”. Thank you all for attending. I apologise for not using all the feedbacks to select winners for the books – sorry, guys! I’ll pay attention next time (probably lack of food). Some notes that came up during the session: 1. The misbehavior on the DynamicXmlElement class was due to a small oversight: I wrote this code when only one element existed: case 1:   ...
2 comments

What’s New in C# 4.0 Open House

Monday, August 24, 2009

Last Wednesday I presented in a Microsoft Open House a session entitled “What’s New in C# 4.0?”. The first part was “What’s new in VS 2010” presented by Guy Burstein. Thank you all for attending! The presentation and demos can be downloaded from the events page here.
2 comments