3 posts about Flags by 3 contributors.
Know Flags? Share what you know with developers who are learning it.
The [Flags] attribute in C# allows an enum to represent a combination of values using bitwise operations. This is useful when an enum needs to store multiple values simultaneously. By applying [Flags], enum members can be combined using bitwise OR, and specific values can be checked with bitwise AND or HasFlag.
Learn how to implement feature flags in .NET Core using appsettings.json or the FeatureToggle library for controlled releases, A/B testing, rollbacks, and environment-specific settings.
This article shows an implementation of TypeConverter which allows you to edit bit flags enumerations in PropertyGrid.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article