coger el ultimo numero de list windows form code example
Example 1: lista generica como parametro de un metodo en c#
class SomeTestClass { public DateTime Start { get; } = DateTime.Now; public DateTime Now => DateTime.Now; }
Example 2: lista generica como parametro de un metodo en c#
List<Employee> emp = new List<Employee>();
DataTable dt = ViewState["CurrentEmp"] as DataTable;
emp = (from DataRow row in dt.Rows
select new Employee
{
_FirstName = row["FirstName"].ToString(),
_LastName = row["Last_Name"].ToString()
}).ToList();