Try this:
public static List<string> retrieveAllIP()
{
var retList = new List<string>();
foreach(strings inaddIP)
{
string returnIP = s;
retList.Add(returnIP);
}
return retList;
}
static void Main(string[] args)
{
List<string> range = WildcardFiles();
foreach (string item in range)
{
// Do something with item
}
}
static List<string> WildcardFiles()
{
List<string> listRange = new List<string>();
listRange.Add("q");
listRange.Add("s");
return listRange;
}