A .NET code sample