Check out example codes for "lista generica como parametro de un metodo en c#". It will help you in understanding the concepts better.

Code Example 1

List<Employee> emp = new List<Employee>();

//Maintaining DataTable on ViewState
//For Demo only

DataTable dt = ViewState["CurrentEmp"] as DataTable;

//read data from DataTable 
//using lamdaexpression


emp = (from DataRow row in dt.Rows

   select new Employee
   {
       _FirstName = row["FirstName"].ToString(),
       _LastName = row["Last_Name"].ToString()

   }).ToList();

Code Example 2

public static  List<T> pesquisa_lista<T>(string campo, string valor, List<T> lista)  
{
   return new List<T>();
}

Code Example 3

class SomeTestClass { public DateTime Start { get; } = DateTime.Now; public DateTime Now => DateTime.Now; }

Learn ReactJs, React Native from akashmittal.com