How to determine if object is of type IEnumerable ?
Code:
namespace NS { class Program { static IEnumerable GetInts()
Try
type.GetInterface("IEnumerable") != null && type.IsGenericType