Horje
c# return list Code 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;
}
c# return list

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;  
}  





Csharp

Related
c# get all class properties Code Example c# get all class properties Code Example
newtonsoft create dynamic object Code Example newtonsoft create dynamic object Code Example
c# reverse a string Code Example c# reverse a string Code Example
button color uwp c# Code Example button color uwp c# Code Example
repeat 10 timesw c# Code Example repeat 10 timesw c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13