static void Main(string[] args) { IDictionary <string, string> openWith = new Dictionary <string, string>(); openWith.Add("txt", "notepad.exe"); openWith.Add("bmp", "paint.exe"); openWith.Add("dib", "paint.exe"); openWith.Add("rtf", "wordpad.exe"); string test = "#80FFA0"; HtmlColorParser parser = new HtmlColorParser(openWith); var rgbStr = parser.Parse(test); Console.WriteLine($"{rgbStr.r} {rgbStr.g} {rgbStr.b}"); //Console.WriteLine(string.Concat(test1.Select)); Console.ReadKey(); }