My method signatures are the same except for the first parameter.
public DataSet MyMethod(IEnumerable<T> list)
{
}
public DataSet MyMethod(T obj)
{
}
Calling method is :
List<myobject> _objlist = new List<myobject>();
DataSet ds = MyMethod(_objlist );
I expect the first method to be called but the second one is being called instead? Isn't the IEnumerable more specific to the List being passed as compared to the more generic object?