Three Methods to Convert Strings into Enums in C#

I recently had to solve the problem of converting strings into enums in C#. There are a few different solutions you can implement depending on your requirements. This article aims to show you some of these solutions and when to use each one.…

The Comprehensive Guide to Custom DateTime String Formats in C#

When working with C#, we can convert a DateTime object to a string. If we don't specify any formatting options, the default DateTime string format will be outputted. However, C# gives us the power to completely customise how the DateTime object should be outputted using custom format specifiers.…

Enabling CORS in Nancy

We use Nancy for a product that we have developed in-house. One of the features that we have implemented in the product is a REST Api so that we can...…

Creating Custom Configuration Sections in App.config

I recently started a new job as a Software Developer working on extending Sage software functionality. Much of this development is done in Visual C#. Through the projects I have been given, there have been a few concepts I have learnt that...…