I have one generic method which does some operations and want to
return result as string or IEnumerable<T>
public IEnumerable<T> MyResult(string input)
{
// do something return string based on some
// case or return IEnumerable<T>
}
How do I achieve this in one method, and how do I maintain return type?