Category Archives: C# 6.0

Realworld example ASP.NET Core 1.0’s Middleware

Synopsis: HTTP Modules and HTTP Handlers are not used anymore with ASP.NET Core 1.0. But what if your web app relies on HTTP Modules/Handlers to function? Well, I had a web application that relied on HTTP Modules and a Handler. … Continue reading

Posted in .NET programming, ASP.NET Core 1.0, ASP.NET MVC, C#, C# 6.0, Dependency Injection, DNX | Tagged , , , , , | Leave a comment

Real world example of Dependency Injection based on run-time values

Synopsis: This is a  real world example from my work in which I solved a Dependency Injection problem, where the dependencies are based on run-time values, with an Abstract Factory. Get the example from my GitHub: https://github.com/DannyvanderKraan/EntityActionAbstractFactory Intro Last time I introduced … Continue reading

Posted in .NET programming, C# 6.0, Dependency Injection, Software design patterns | Tagged , , , , , | 2 Comments

C# 6 solves verbose null checks

Downloaded Visual Studio 2015 RC yet? No? What are you waiting for? C# 6.0 has lots to offer! Last time I checked out the brand new nameof keyword. This time I want to look at the Null-Conditional Operator. Something I … Continue reading

Posted in .NET programming, C# 6.0 | Tagged , | Leave a comment

C# 6 solves magic strings problem

If you haven’t already, download Visual Studio 2015 RC and check out C# 6.0! First thing I am enthousiastic about is the brand new nameof keyword. Create a new  Console Application, name it NewPossibilitiesC6 and add a class named Person. Copy … Continue reading

Posted in .NET programming, C#, C# 6.0 | Tagged , , | 4 Comments