generics - List.AddRange Has Some Invalid Arguments -
i want create list of flowers (for example) conform predefined iflower interface below. public interface iflower { string colour { get; } int petals { get; } } public class rose : iflower { public rose() { string[] colours = new string[]{ "pink", "orange", "red", "crimson", "cerise" }; random random = new random(); colour = colours[random.next(0, 4)]; } public string colour { get; set; } public int petals { { return 8; } } } public class daisy : iflower{ public daisy() { string[] colours = new string[]{ "white", "yellow", "purple" }; random random = new random(); colour = colours[random.next(0, 2)]; } public string colour { get; set; } public int petals { { return 18; } } } public class flowers { public list<daisy> daisies { { ...