using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program
{
static void Main()
{
// 1.
// String array
string[] s = new string[]
{
"one",
"two",
"three",
"four",
"five"
};
// 2A.
// Convert with new List constructor.
Listl = new List (s);
// 2B.
Listl2 = s.ToList();
}
}
No hay comentarios:
Publicar un comentario