How to determine if object is of type IEnumerable ?
Code:
namespace NS { class Program { static IEnumerable GetInts()
Since IEnumerable inherit IEnumerable (non generic) and if you don't need to know when a type is just IEnumerable and not IEnumerable then you can use:
if (typeof(IEnumerable).IsAssignableFrom(srcType))