I have a
List
with 1500 strings. I am now using the following code to pull out only string that start with the string prefix
I would go with using Linq:
var query = list.Where(w => w.StartsWith("prefixText")).Select(s => s).ToList();