Forum Xamarin.iOS

based on month name how to add the list for sample detail

AmejackAmejack USMember ✭✭✭

based on month name how to add the list for sample detail .this is my code .

Listsample;

public class SampleModel
{
public string MonthName { get; set; }
public List detail {get; set ;}
}

public class SampleDetail
{
public string HeaderTitle { get; set; }
public string Description { get; set; }
public string Date { get; set; }
public string Day { get; set; }
public string Time { get; set; }
}

here i m adding value to the samplemodel but how to add for sampledeatils
sample = new List
{
new SampleModel { MonthName = "MARCH 2020",detail{ } },

            new SampleModel { MonthName = "FEBRUARY 2020"},
            new SampleModel { MonthName = "JANUARY 2020" },

        };
Tagged:

Best Answer

Answers

Sign In or Register to comment.