Blog Archives

C# 6.0 Features Not Working with MVC 5 / Visual Studio 2015 / Razor

Hello World, I ran into this problem today while mucking around with the installed Nuget packages and web.config of an MVC 5 project where the Razor views started showing up an error while using the C# 6 String interpolation feature.

Tagged with: ,
Posted in .NET, ASP.NET, C#, Web-Development

IDisposable Pattern: A refresher on the need and correct implementation

Hello World, One may wonder why another post on IDisposable? After all, how difficult could an implementation of an interface that has only one void parameter-less method be? Well, this post is a result of my interactions with developers during

Tagged with: , ,
Posted in .NET, Best-Practices, C#

Double Check Locking in C# – End of life?

Hello World, After having a discussion with a colleague, I was researching for the correct way to implement double-check locking in C# and .NET 4.5. Turns out a lot of water has flown under the bridge and things have changed quite

Tagged with: , ,
Posted in .NET, C#, Multi-Threading

Logging Frameworks for .NET

Hello World, Any application out in the real world needs good instrumentation so that when things go wrong (as they will from time to time), one has somewhere to start. Logging has long been a standard and time-tested way for

Tagged with: ,
Posted in .NET, C#

First Chance exceptions – What are the chances?

Hello World, I’m sure every developer who’s building commercial apps cares to look in the output window when debugging projects. It is hard to miss a lot of these messages that show up from time to time: A first chance

Tagged with: , ,
Posted in .NET, C#

Environment specific config files for .NET apps – Config Transforms

Hello World, This post is about an area that I for one had little experience with until I was on a project that required me to understand ways to maintain environment specific config files for our application. The Problem Very

Tagged with: , ,
Posted in .NET, C#, Visual Studio

C#: Thread Safe Event calls

Hello World, While working on a multi-threaded Windows service that used events heavily, I did some research on how to trigger events in a thread safe manner. Inevitably, one looks for reference material or books that have the respect of

Tagged with: ,
Posted in .NET, Best-Practices, C#
  • Comic for May 23, 2017
    Dilbert readers - Please visit Dilbert.com to read this feature. Due to changes with our feeds, we are now making this RSS feed a link to Dilbert.com.