src/Mimp.SeeSharper.Reflection/TypeExtensions.Generic.cs
/// <summary>
/// Check if type has any generic types unspecified type.
/// </summary>
/// <param name="type"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
Check if type has any generic types unspecified type.
Check if type has any generic types unspecified type .
public static bool HasGenericParameters(this Type type)
        {
            if (type is null)
                throw new ArgumentNullException(nameof(type));
            return type.IsGenericTypeDefinition || type.ContainsGenericParameters;
        }
public static bool HasGenericParameters ( this Type type ) { if ( type is null ) throw new ArgumentNullException ( nameof ( type ) ) ; return type . IsGenericTypeDefinition || type . ContainsGenericParameters ; }
Check if type has any generic types unspecified type.
Check if type has any generic types unspecified type .
None
None
Type
this
type
None