You can go with this:
List<string> strings = new List<string>()
{
"abc",
"abb",
"acc",
"acb",
"zx",
"zxc",
"zxx",
"caa",
"cba",
"ccc",
};
string input = "ab";// <= or whatever
foreach (string foundString in strings)
{
if (foundString.StartsWith(input))
{
Console.Out.WriteLine(foundString);
}
}
2
solved How to List candidate word