hi
i did not got ur FieldOrPropInfo.GetAllNames Functionality
i think post here
public string[] GetAllNames(List<Type> t2,bool t3)
{
string[] strings = new string[]{"Jaya", "Kumar"};
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;}
}
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com
Murugavelmsc, if this helps please login to Mark As Answer. | Alert Moderator