de en es fr nl pl pt sv zh

.net

The Behavior of C# Nested Static Classes

Bits, Bobs & Breakpoints — Aaron Holmes

The Behavior of C# Nested Static Classes# 26 July 2018 C#, .NET, Experimental, Documentation While working on a code review, I found a nested static class that I needed to verify the validity of. I had three questions: Does the CLR create new instances when the containing class is instantiated?...

Reading an HTTP Request Response Body from Exceptions

Bits, Bobs & Breakpoints — Aaron Holmes

Reading an HTTP Request Response Body from Exceptions# 16 April 2015 C#, .NET, HTTP, Debugging Every so often I need to read the response body of a failed HTTP request while debugging a .NET application in Visual Studio. It’s not immediately obvious how you can do this, so here’s a quick way to...

Speech Synthesis on Windows Phone 8.1

Bits, Bobs & Breakpoints — Aaron Holmes

Speech Synthesis on Windows Phone 8.1# 7 December 2014 C#, .NET, Windows-Phone, Speech I recently wrote an application to make my phone report current Los Angeles traffic conditions. I used the Windows.Media.SpeechSynthesis namespace to read in either a plain-text string, or an SSML-formatted...