To make things easily understandable I will use Customer
object with Name and Age attributes as seen in Listing 1.
Listing 1 - Customer BO
class Customer
{
private int _Age;
private string _Name;
public int Age
{
get
{
return _Age;
}
set
{
_Age = value;
}
}
public string Name
{
get
{
return _Name;
}
set
{
_Name = value;
}
}
}
So the Generic list that can take Cutomer object can be
defined as,
Listing 2 - Customer BO Generic List
List<Customer> cuslist = new List<Customer>();