Color color = Color.Parse("#2F5C3A");
Does produce an ArgumentException "Requested value '#2F5C3A' was not found."
This Exception seems to be handled somewhere but slows down the code a lot. The color is parsed correctly though.
Expected Behavior
Should parse the color without throwing any Exceptions if the format is valid.
Actual Behavior
Always throws an ArgumentException.
Steps to Reproduce the Behavior
Create a new .Net 8 Console Application and try to parse a color from a hex string as I did.
Color color = Color.Parse("#2F5C3A");
Does produce an ArgumentException "Requested value '#2F5C3A' was not found." This Exception seems to be handled somewhere but slows down the code a lot. The color is parsed correctly though.Expected Behavior
Should parse the color without throwing any Exceptions if the format is valid.
Actual Behavior
Always throws an ArgumentException.
Steps to Reproduce the Behavior
Create a new .Net 8 Console Application and try to parse a color from a hex string as I did.