Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
}
 
PREVIOUS NEXT
Tagged: #return #list
ADD COMMENT
Topic
Name
7+1 =