Ben's Blog A place to share my thoughts

C# can’t add 8 or 16 bit types, but it’s good with 32 bit

This surprised me today when I found out that arithmetic operators (+, -, *, /, %) in C# are not defined for 8 or 16 bit integral types!

Read more

Dependency Injection in ASP.NET MVC 5+

In this short article, I will explain and demonstrate dependency injection in ASP.NET MVC.

Read more

SQL Pivot to obtain EAV data

Here is a brief post showing how we can use a SQL pivot to obtain EAV data.

Before I go into the actual code and briefly explain how it does it, I will explain the reasoning why such a model was developed.

Read more

Delegates, Events and EventHandlers in C#.NET

I recently* came across some C# code which had a mixture of delegates, events and eventhandlers but coming from a Java background, I was completely lost!

Read more

Unity 5.6.0f3 crashing on splash screen fix

I lost a few hours trying to get unity to run, only to crash at the splash screen and get greeted by the bug tracker!

Read more