Singletons

Singletons

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…
List Extensions

List Extensions

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…
Disposable Pattern

Disposable Pattern

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…
Friendly Name

Friendly Name

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…
Matching strings with wildcards.

Matching strings with wildcards.

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…