public void add(string tekst, string antwoord, bool goedeAntwoord) { TestOnderdeel t = new TestOnderdeel(); t.tekst = tekst; t.antwoord = antwoord; IList<TestOnderdeel> lst = null; if (goedeAntwoord) { lst = goedeAntwoorden; } else { lst = antwoorden; } lst.Add(t); }
public void add(string tekst, string antwoord, bool goedeAntwoord) { TestOnderdeel t = new TestOnderdeel(); t.tekst = tekst; t.antwoord = antwoord; IList <TestOnderdeel> lst = null; if (goedeAntwoord) { lst = goedeAntwoorden; } else { lst = antwoorden; } lst.Add(t); }