Search this site

C#

Working through a C# problem? Find code examples for OAuth 2.0, unit testing with Moq, parallel execution, and the .NET features that make everyday tasks easier.

24 June 2011

C# Parallel Invoke

Run independent C# methods concurrently with Parallel.Invoke, using lambda expressions and the Task Parallel Library instead of managing threads yourself.

21 March 2011

Explicit Interface Usage in C#

Use explicit interface implementation in C# to make selected methods accessible through the interface, helping keep callers away from concrete class methods.

24 January 2011

A Simple Guide to using OAuth with C#

Follow the original OAuth token exchange and signed API calls in this historical C# walkthrough, with a link to my newer OAuth 2.0 guide.

19 March 2010

Useful Lambda Expressions

Practical C# lambda examples for finding and filtering list items, declaring event handlers and selecting ranges, making everyday code shorter and clearer.

11 January 2010

MVC HtmlHelper for Google Charts

A 2010 ASP.NET MVC example wraps the Google Charts image API in an HTML helper, turning repeated chart markup into a reusable method for your views.

8 January 2010

Developing Applications for Windows 7

I've just got my hands on a shiny new computer, maxed out with new RAM and Windows 7. So far I am very impressed with Windows 7, although it looks pretty similar to Vista, its a lot slicker and I can't really seem to find any faults just