visual c++ - How to return List of Strings in c# -


Can anyone tell me how to store and return the list of stars?

I have been asked because I wrote a function that gives a collection of strings and I want to create that commm and get that com (to get the returned list)

vc ++ where I

I hope it will be obvious ...

thanks in advance

/ Div>

or string [] are the best choice.

Here is a sample method that lists the string:

  public static list & lt; String & gt; GetCities () {List & lt; String & gt; Cities = New list & lt; String & gt; (); Cities.Add ("Istanbul"); Cities.Add ("Athens"); Cities.Add ("Sofia"); Returning city; }  

Comments