
3 November 2025
A Modern Guide to Using OAuth 2.0 with C# and Visual Studio Code
Master OAuth 2.0 in .NET 9.0! This tutorial covers using OAuth 2 to acquire tokens and access Microsoft Graph user data.
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.

3 November 2025
Master OAuth 2.0 in .NET 9.0! This tutorial covers using OAuth 2 to acquire tokens and access Microsoft Graph user data.
24 June 2011
Run independent C# methods concurrently with Parallel.Invoke, using lambda expressions and the Task Parallel Library instead of managing threads yourself.
21 March 2011
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
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.
9 April 2010
Isolate your C# unit tests with Moq by mocking the data layer, setting up return values and checking results without changing a real database.
19 March 2010
Practical C# lambda examples for finding and filtering list items, declaring event handlers and selecting ranges, making everyday code shorter and clearer.
9 February 2010
Render an ASP.NET user control as a string for a web service, reusing the same HTML on the server and client and handling controls that expect a server form.
3 February 2010
A look back at my 2010 poll on .NET dependency injection containers, with an introduction to inversion of control and notes on Castle Windsor and Ninject.
11 January 2010
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
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
5 January 2010
My small C# sample uses the original iTextSharp library to generate a PDF with a barcode, illustrating how dynamic data can become a printable document.