c# - Add Generic list in a MyClass but how? -


How do I add a list to a general category? First of all, my generic class is that:

 [serialable] Public class schedule selected {private string frequency; List Frequency Day = New List (); Private string time; Private string initial time; Private string endtime; Private string start date; Personal string ending; Private string name; Public timeline selected items (string frequency, list frequency day, string time, string starttime, string and time, string start, string end date, string name) {frequency = frequency; Frequency = Frequency day; Time = time; Start time = starters; Endtime = endtime; StartDate = startdate; EndDate = enddate; Name = name; }} [Serialable] public class schedules selected items list {public list item; Public timeline selected items list () {items = new list (); }} And I want to add the schedule. Form1.cs Form1.cs code as selected items in the schedule listed in it: Private zero timer 1 volt (object sender, EventArgs e) {string saat = DateTime.Now .toShortTimeString (); String bugle = datetime today. To shortcode string (); ScheduleMng smgr = new ScheduleMng (); Schedule List schlist = smgr.LoadXml (); List list = new list (); (Int i = 0; i = convert; tutorial (schlist.Items [i] .startdown.tostring ()) && convert. Brokentime (buguton) 

add list (list); ----> I do not use these codes. This error "Some invalid arguments are included" How can you help me? :)

Here's what you want, I think:

  list & gt; Schedule selected items & gt; List = new list & lieutenant; Scheduled items & gt; ();  

Comments