ALLINSIGHT

Home of the AlmostImplementedException

Bit-Flags

Bit-Flags with enums

Today i want to show you how to use enumerations to set multiple values in a variable using bit-flags. Normaly enums are an easy way to set a single value and check later which value is set working with a static name throughout your entire application. Enums are much better then magic numbers or constants […]

, , ,