tagged [flags]
Why use flags+bitmasks rather than a series of booleans?
Why use flags+bitmasks rather than a series of booleans? Given a case where I have an object that may be in one or more true/false states, I've always been a little fuzzy on why programmers frequently...
How to get the numeric value from a flags enum?
How to get the numeric value from a flags enum? > [Enums returning int value](https://stackoverflow.com/questions/943398/enums-returning-int-value) [How to get the numeric value from the Enum?](http...
- Modified
- 23 May at 12:9
FlagsAttribute Enum problems
FlagsAttribute Enum problems So I'm building an MSNP (windows live messenger) client. And I've got this list of capabilities ``` public enum UserCapabilities : long { None = 0, MobileOnline = 1
- Modified
- 5 May at 07:27
Flags enum & bitwise operations vs. “string of bits”
Flags enum & bitwise operations vs. “string of bits” A fellow developer suggested we store a selection of days of the week as 7-character string of 1’s and 0’s, i.e. “1000100” for Monday and Friday. I...
- Modified
- 15 Mar at 15:28
Large flags enumerations in C#
Large flags enumerations in C# Hey everyone, got a quick question that I can't seem to find anything about... I'm working on a project that requires flag enumerations with a large number of flags (up ...
- Modified
- 7 May at 22:34
Explicitly defining flag combinations in an enum
Explicitly defining flag combinations in an enum I was thinking of implementing an enum that defines the state of a game object, and I wanted to know if I could directly use flags within the enum's de...
- Modified
- 20 May at 21:12
Switch on Enum (with Flags attribute) without declaring every possible combination?
Switch on Enum (with Flags attribute) without declaring every possible combination? how do i switch on an enum which have the flags attribute set (or more precisely is used for bit operations) ? I wan...
- Modified
- 19 Feb at 17:23