FlagsAttribute Enum problems

The definition of the shift operators means that only the 5 least significant bits are used for 32-bit numbers and only the first 6 bits for 64-bit; meaning: 1 << 5 is identical to 1 << 37 (both are 32) By making it: MsgrVersion9 = 1L << 32 you make it a 64-bit number, which … Read more

Flags enum & bitwise operations vs. “string of bits”

Benefits of using Flags enum: Standard approach: “They are the correct design to use when multiple enumeration values can be specified at the same time.” Intent is clear Maintainable — new programmers should pick this up easily Easily extensible — support for new flag combinations (e.g. weekend) Fast Negatives of using Flags enum: Data representation … Read more

Why are flag enums usually defined with hexadecimal values

Rationales may differ, but an advantage I see is that hexadecimal reminds you: “Okay, we’re not dealing with numbers in the arbitrary human-invented world of base ten anymore. We’re dealing with bits – the machine’s world – and we’re gonna play by its rules.” Hexadecimal is rarely used unless you’re dealing with relatively low-level topics … Read more

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.