Automatonymous.Tests.InterfaceExtensions.IsOpenGeneric C# (CSharp) Method

IsOpenGeneric() public static method

Determines if the type is an open generic with at least one unspecified generic argument
public static IsOpenGeneric ( this type ) : bool
type this The type
return bool
        public static bool IsOpenGeneric(this Type type)
        {
            var typeInfo = type.GetTypeInfo();
            return typeInfo.IsGenericTypeDefinition || typeInfo.ContainsGenericParameters;
        }