One Year of Passion

Exactly one year ago I created this blog and published the Design Patterns in the Wild post. My intention was (and is) to share both technical details and general project experiences. To keep the subjects somewhat aligned I try to make sure that all posts are interesting for a .NET developer working on software projects.… Continue reading One Year of Passion

[Flags] on Enums Make ToString() Smart

Putting the [Flags] attribute on an enum changes ToStrings behaviour. It generates a comma separated list. I’ve used enums a lot. I’ve occasionally used the [Flags] attribute too. But I’ve never paid attention to how ToString() changes behaviour when the [Flags] attribute is added. Not until a couple of days ago, when I learnt something… Continue reading [Flags] on Enums Make ToString() Smart