I'm trying to convert a string to a SolidColorBrush in C#. The code I'm using is:
arrColors[arrColors.Length - 1] =
(SolidColorBrush)new BrushConverter().ConvertFromString(sLine);
where sLine is a string read from a text file. For example, sLine might be "Black".
This code gives me a FormatException.