string s = "Visual Studio '2005'";
char[] p = {';', '-', '\''}; // last character is escaped apostrophe
(') !!
Console.WriteLine(s.Substring(0,s.IndexOfAny(p)));
string s = "Visual Studio '2005'";
char[] p = {';', '-', '\''}; // last character is escaped apostrophe
(') !!
Console.WriteLine(s.Substring(0,s.IndexOfAny(p)));