# C#

ASP.NET Core Hidden Gem - QueryHelpers

How to build a URL containing dynamic query arguments using the ASP.NET Core QueryHelpers.AddQueryString method. A hidden gem in ASP.NET Core.

ASP.NET Core Caching in Practice

How to use and implement Cache-Control, Cache-Control Immutable, E-Tag, Last-Modified and If-Modified-Since Caching HTTP headers in ASP.NET Core.

A Very Generic .editorconfig File (Updated)

An .editorconfig file helps define and maintain consistent coding styles between different editors and IDEs for files with different file extensions.

ASP.NET Core Lazy Command Pattern

Move your ASP.NET Core MVC action method logic into lazily loaded commands using the command pattern, to reduce Controller complexity.

dotnet new Feature Selection

How to add feature selection to your dotnet new template using symbols (bool, string, choice, computed) and pre-processor directives.

Making Application Insights Fast & Secure

Implementing Application Insights into your ASP.NET Core application with performance and security as a top priority in this advanced scenario.

Colorful.Console

Colorful.Console is a C# library that wraps around the System.Console class, making your console apps more colourful. Write ASCII art using Figlet fonts.

Logging with Serilog.Exceptions

Log exception details and custom properties that are not output in Exception.ToString() using Serilog.Exceptions for .NET.

Whats New in ASP.NET Core Boilerplate

With the release of ASP.NET Core Boilerplate, this post discusses what's new and what is currently missing due to ASP.NET Core still being in beta.

Canonical URL's for ASP.NET MVC

Use canonical URL's in ASP.NET MVC for better Search Engine Optimization (SEO) using ASP.NET Core Boilerplate and the RedirectToCanonicalUrlAttribute.

Building RSS/Atom Feeds for ASP.NET MVC

How to build a fully featured RSS/Atom feed for ASP.NET MVC, including Google's PubSubHubbub and the 'Subscribe to this feed' button.

C# 6.0 - Saving Developers From Themselves

C# 6.0 helps reduce human error and save developers from themselves using the nameof operator, string interpolation and the null-conditional operator.

Content Security Policy (CSP) for ASP.NET MVC

Content Security Policy (CSP) is a HTTP header which white-lists content the browser is allowed to load. This post discusses its application in ASP.NET MVC.

Securing the ASP.NET MVC Web.config

The web.config file is insecure in the default ASP.NET MVC project template. This post talks you through securing the ASP.NET MVC Web.config file.

Custom Visual Studio Project Templates

A guide to creating custom Visual Studio project templates in .zip and VSIX form and submitting them to the Visual Studio Gallery, so it can be downloaded.

Internet Favicon Madness (Updated)

Add favicon's to your website to support iOS, Android, Windows 7, Windows 8, Windows Phone and more. Find out where icons are used on each platform and how.

ASP.NET Core Boilerplate

ASP.NET Core Boilerplate is a professional ASP.NET MVC template for building secure, fast, robust and adaptable web applications or sites.

Elysium Extra 1.1 Released

Elysium Extra Version 1.1 is a Windows Presentation Foundation (WPF) SDK providing Metro styles for built in WPF controls and some custom controls.

Naming Conventions

Code is written to be read by humans, not machines. Naming conventions and standard code styling can boost productivity, particularly if working in teams.

GetHashCode Made Easy

Implementing GetHashCode is hard work and little understood. Learn how to implement GetHashCode as quickly and as simply as possible.

WPF Metro Part 4 - Elysium Extra

Elysium Extra is an excellent Windows Presentation Foundation (WPF) SDK providing Metro styles for built in WPF controls and some custom controls.

WPF Metro Part 3 - Elysium

Elysium is an excellent Windows Presentation Foundation (WPF) SDK (On CodePlex) providing Metro styles for built in WPF controls and some custom controls.

WPF Metro Part 2 - MahApps Metro

MahApps Metro is an excellent Windows Presentation Foundation (WPF) SDK providing Metro styles for built in WPF controls and several custom controls.

WPF Metro Part 1 - Modern UI for WPF

Modern UI for WPF is an excellent Windows Presentation Foundation (WPF) SDK providing Metro styles for built in WPF controls and several custom controls.

Stop The Brace Wars, Use StyleCop

StyleCop analyzes C# source code to enforce a set of style and consistency rules. Rehan advocates its use in this thought provoking article.