2
I built a generic method that suits me well, but I’m having difficulty in calling this method.
public List<T> CriaLista<T>(params T[] pars)
{
List<T> lista = new List<T>();
foreach (T elem in pars)
{
lista.Add(elem);
}
return lista;
}
I need a list of the type returned T
same. I’m not sure how to call this list.