Ben's Blog A place to share my thoughts

How to debug Xamarin in Visual Studio 2017

Anyone who has worked with Xamarin is well-aware that the platform is still in its infancy. It’s an interesting framework, but it is riddled with bugs, performance issues and visual studio doesn’t always play ball.

Read more

Strongly Typed Enum Pattern in C#

I’ve recently subscribed to a new developer podcast; “Weekly Dev Tips by Steve Smith“. The podcast is fantastic, providing many useful tips spanning a range of topics from programming design to developers’ soft skills. One of my favourites episodes was #14, where he discusses a strongly type enum pattern: Smarter Enumerations.

Read more

Ordinal vs Culture Comparison in C#

There are two comparsion algorithms that we can select when comparing strings: Ordinal and Culture sensitive comparison. Here is the difference between Culture-Sensitive and Ordinal string comparison:

Read more

Delegates vs Interfaces in C# – What to use and when?

Delegates and interfaces have a lot in common. In fact, any problem that can be solved by a delegate can be solved by an interface. This made me think, why should I use delegates when I have interfaces? Let’s explore this question together!

Read more

C# Action and Func generic delegates

I have been diving deeper into the C# language, and today, I covered Action and Func generic delegates – good news, they’re pretty simple.

Read more