Make List from T - CSharp System.Collections.Generic

CSharp examples for System.Collections.Generic:List

Description

Make List from T

Demo Code


using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from w  ww .  j  ava  2s .co  m

public class Main{
        public static List<T> MakeList<T>(T itemOftype)
        {
            var newList = new List<T>();
            return newList;
        }
}

Related Tutorials