Automatonymous.Tests.InterfaceExtensions.IsOpenGeneric C# (CSharp) Метод

IsOpenGeneric() публичный статический Метод

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
Результат bool
        public static bool IsOpenGeneric(this Type type)
        {
            var typeInfo = type.GetTypeInfo();
            return typeInfo.IsGenericTypeDefinition || typeInfo.ContainsGenericParameters;
        }