All Questions
5
questions
13
votes
4answers
23k views
Storing Enum values as Strings in DB
I have a Data First Migration and have been struggling a little with storing an enum value as a string.
(Im aware that enums should be stored as ints but, personally I have never liked this, yes ...
3
votes
1answer
1k views
I created a “enum string” container in c++
The reason I created this is because I wanted my string values to be type safe and I wanted to decrease the amount of bad data that has crept into my system due to hard coded values in the past. ...
5
votes
3answers
2k views
Select the Enum to classify a string based on the first word found
I have written a small function that will check a string to see if it contains a certain word.
Depending on the word that is found first, the function will return the correct Enum value that needs to ...
5
votes
2answers
4k views
Building a summary string from a flags enum
I'm trying to replicate the attributes text that appears in File Explorer, for files and directories.
I can't just use the enum names, as the summary text uses a single character for each set flag, ...
7
votes
1answer
118 views
Building a string representing 50+ ActiveDirectory options
I have a switch statement used to handle options that a user selected (stored in an array). The array is iterated through, and for each element (enum object) in the array, an appropriate action is ...