using System;
using System.Collections.Generic;
using System.ComponentModel;
class GenericMethodDemo
{
static List MakeList (T first, T second)
{
List list = new List();
list.Add (first);
list.Add (second);
return list;
}
static void Main()
{
List list = MakeList("Line 1", "Line 2");
foreach (string x in list)
{
Console.WriteLine(x);
}
}
}