How To add Inline Class add Items to List Collections

Jayakumars
Posted by Jayakumars under C# category on | Points: 40 | Views : 1155
public string[] GetAllNames(List<Type> t2,bool t3)
{
string[] strings = new string[]{"id",t2.Count.ToString(),"string","Jayakumar"};
return strings;
}
protected void bt1_Click(object sender, EventArgs e)
{
List<string> ltField = new List<string>();
List<Type> tl = new List<Type>();
tl.Add(typeof(Manager));
tl.Add(typeof(Employee));
tl.Add(typeof(Department));
tl.Add(typeof(Finance));
tl.Add(typeof(Country));

for (int i = 0; i < tl.Count; i++)
{
string[] names = GetAllNames(tl, true);
}
}

public class Manager
{
public int ManagerId{get;set;}
public int ManagerName{get;set;}
}

public class Employee
{
public int EmployeeId{get;set;}
public int EmployeeName{get;set;}
}

public class Department
{
public int DepartmentId{get;set;}
public int DepartmentName{get;set;}
}

public class Finance
{
public int FinanceId{get;set;}
public int FinanceName{get;set;}
}

public class Country
{
public int CountryId{get;set;}
public int CountryName{get;set;}
}

Comments or Responses

Login to post response