public static List <string> ToStringList(string s, char separator, char startSymbol, char endSymbol) { var list = new List <string>(); var length = ProgramUnitName.CountParts(s, separator); for (var i = 0; i < length; i++) { var element = ProgramUnitName.GetPart(s, separator, i).Trim(); list.Add(element); } return(ToStringList(list, separator, startSymbol, endSymbol)); }
public static bool IncludesMoreThanOneSpecified(string s, char c) { var i = ProgramUnitName.CountParts(s, c); return(i > 2); }