3 ms·
I would argue that using `Enum.TryParse` on integers means you're doing something wrong. If I have an integer, even if it's as a string, I can just cast it to t
by colejohnson66 3y ago
I would argue that using `Enum.TryParse` on integers means you're doing something wrong. If I have an integer, even if it's as a string, I can just cast it to the enum type (after parsing the string if needed), hence why `Enum.IsDefined` exists.