public static bool IsNary(System.Type type) { return type.IsGenericType && typeof(IEnumerable).IsAssignableFrom(type); }