csharp return list
Code Example - csharp return list
Try this:
public static List<string> retrieveAllIP()
{
var retList = new List<string>();
foreach(strings inaddIP)
{
string returnIP = s;
retList.Add(returnIP);
}
return retList;
}