we've found an exception in our logs and its unclear to us how this code could be valid, can someone please explain why this codesnippet results in an Run-time exception instead of being a Compile-time error?
string variant = "Variant";
int result;
Enum.TryParse(variant, out result);
Link to dotnetfiddle: https://dotnetfiddle.net/XWhkz3
Thanks in advance,
Marcel!