Posts
All the articles I've posted.
PowerShell Cmdlets sources
Script to open any PowerShell cmdlet's source code directly in .NET Reflector for inspection.
Read more…Pluralsight - The best screencasts
Brief recommendation of Pluralsight as a professional screencast platform covering a wide range of technologies.
Read more…WCF _ useless ProtocolException
WCF ProtocolException truncates the server error response; an extension method on WebException extracts the full response body.
Read more…T4 Assembly references for Design-time templates
Common patterns for referencing assemblies in T4 design-time templates using GAC paths, absolute paths, and MSBuild variables.
Read more…T4 Design-Time templates base class
How to create a shared custom base class for T4 design-time templates by extending TextTransformation, with a working example.
Read more…T4 Runtime Template and code-behind logic
How to add a code-behind partial class to a T4 runtime template by manually editing the csproj file, with a Visual Studio add-in.
Read more…T4 Templates and Null in Expression block
T4 templates throw ArgumentNullException on null expression blocks; fix by overriding ToStringWithCulture in the base class.
Read more…Useful Dictionary extensions I am always using
Two reusable C# IDictionary extension methods: GetValueOrDefault and GetOrAddValue with a factory function.
Read more…Annoying advertisement banners in my blog
A JavaScript one-liner to hide WordPress advertisement banners in the browser, alongside recommending Adblock.
Read more…[PowerShell] Built-in support for -Debug and -Verbose for your scripts
How to enable PowerShell common parameters -Debug and -Verbose in custom scripts using CmdletBinding and DebugPreference.
Read more…