returning a list c# code example
Example: c# 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;
}