Last time I laid out the justification and overall architecture for a REST based nanoservice, for converting between file extensions and mime types. This time I'll go into more detail…
The singleton pattern is probably one of the most overused design approaches of all times. Still, there are times when it actually makes sense to take that approach. Because of…
There are times when I need to filter lists using a white list / black list style approach. For that purpose, I wrote two extensions methods that I'll cover in…
An unofficial pattern that Microsoft follows, for disposing of objects, is one where a class implements the IDisposable interface, along with it's public Dispose method, and then adds a protected…
Posted by
By MartinFebruary 14, 2021Posted inCG.Core
There is a property on the AppDomain type, called FriendlyName that I use often. One thing about it though, I often have to follow up the call to FriendlyName with…
Posted by
By MartinNovember 22, 2020Posted inCG.Core
One of the extension methods available as part of the CODEGATOR CG.Core NUGET package, is a little method named IsMatch. That method accepts two strings and makes a comparison, using…