I have the following method that I use to populate DropDownList-Control.
protected void LoadDropDownList(DropDownList ddl, IEnumerable<A> source) { ddl.DataSource = source; ddl.DataBind(); }
My question is: can I make the method more abstract so that it can also accept IEnumerables of type B?
source share