0
Several things in the project have a table with possible names (strings). But I don’t want to use strings to make comparisons for various reasons (case-sensitive, typo, name table changes, etc). So I wanted to use enums, but C# only lets Overload on class operators, not enums. I can even make a function to compare a string with a corresponding Enum, but I wanted a more elegant solution.
if("nome" == tipoEnum.fulano)
would look better than
if(funcaoDeComparar(string, enum))
You say you don’t want to use strings, but that’s what you’re wearing, I don’t understand.
– Maniero