public static bool IsEnumerable(this Type type) { return type != typeof (string) && type.GetInterfaces().Contains(typeof (IEnumerable)); }