I have the following method which I use to fill a 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 take IEnumerables of type B?
See also.