Windows 8 for C# Developers: Intro and Splash Screen
Now that the Windows 8 Consumer Preview is out, I’m starting a series of blog posts on creating WinRT / Metro applications using C# and XAML. As with other series I have done in the past, early on,...
View ArticleWin8 exploration: Controls sample
This post is part of my Windows 8 / WInRT exploration and notes. This time, I’m digesting the WinRT Controls sample. This sample has quite a few more features to digest. There are six different...
View ArticleCodeMash async talks are live on InfoQ
The joint async talks that Jon Skeet and I presented at CodeMash are now live on InfoQ. Jon and I co-presented two hours of content on the C# 5 async features: Part 1, Part 2. If you want to...
View ArticleWinRT Samples: Running Background Tasks
The next Win8 sample shows the general form of the background task contract for Windows 8 Metro applications. There are two parts to implementing a background task for a Metro style application:...
View ArticleWin 8 exploration: Simple Databinding
This is another in my post series on WinRT programming for C# developers. For review, I’m blogging my notes on running and modifying each of the samples from this page:...
View ArticleWinRT: App Activation, Resume and Suspend
This post doesn’t have much code, but there’s a few important points to remember for working with WinRT apps and application suspend and activation. When your application starts, it becomes the active...
View ArticleReader Question: Member Initializers vs. Constructors
I received a very interesting question from a reader earlier this week: I have a question for you about Item 12 in Effective C# (2nd edition), "Prefer Member Initializers to Assignment Statements"....
View ArticleTesting without ExpectedExceptionAttribute
The Windows Store version of the Microsoft Test Framework does not include an ExpectedExceptionAttribute class. I’ve already received questions on how people should go about creating tests where the...
View ArticleTesting async Methods in C# 5
Last week I promised that I’d write a blog post on using Assert.ThrowsException() to test async methods. Before I get to that, let’s go over some of the other issues that come up with testing async...
View ArticleAsync, Exceptions and Library Design
Hat tip to Stephen Toub for discussing this with me and helping to describe the solution. At my CodeMash precompiler, I mentioned how the C# compiler ensures that methods marked with the ‘async’...
View Article
More Pages to Explore .....