I'm writing a class that returns both a DataTable and a IEnumerable. I cannot define the interface methods exactly the same except for return type. So, I wish I could create this interface (obviously, it doesn't compile):
interface IMyInterface
{
DataTable GetResults();
IEnumerable<string> GetResults();
}
So, how would you structure these two functions, rename them, multiple interfaces, parameters?
I'm just curious on how you guys would handle it, ty...