|
|
|
|
@ -59,14 +59,6 @@ namespace System
|
|
|
|
|
&& !type.IsInterface
|
|
|
|
|
&& (!type.IsGenericType || !type.IsGenericTypeDefinition);
|
|
|
|
|
|
|
|
|
|
public static bool IsGrouping(this Type type) => IsGrouping(type.GetTypeInfo());
|
|
|
|
|
|
|
|
|
|
// TODO: Is this method ever actually called?
|
|
|
|
|
private static bool IsGrouping(TypeInfo type)
|
|
|
|
|
=> type.IsGenericType
|
|
|
|
|
&& (type.GetGenericTypeDefinition() == typeof(IGrouping<,>)
|
|
|
|
|
|| type.GetGenericTypeDefinition() == typeof(IAsyncGrouping<,>));
|
|
|
|
|
|
|
|
|
|
public static Type UnwrapEnumType(this Type type)
|
|
|
|
|
{
|
|
|
|
|
var isNullable = type.IsNullableType();
|
|
|
|
|
|