public List<Lad> abc()
{
Lad clslad = new Lad();
List<Lad> lad = new List<Lad>();
MyDate Date = new MyDate();
List<MyDate> LstDate = new List<MyDate>();
//Lad dd = new Lad
//{
// firstName = "Markoff",
// lastName = "Chaney",
// dateOfBirth = new MyDate
// {
// year = 1901,
// month = 4,
// day = 30
// }
//};
for(int i=0;i<=5;i++)
{
Date.day = 13;
Date.month=02;
Date.year = 1985;
LstDate.Add(Date);
}
clslad.firstName = "dom";
clslad.lastName = "thomas";
clslad.dateOfBirth = LstDate;
lad.Add(clslad);
return lad;
}
No comments:
Post a Comment