Boo.Lang.Compiler.TypeSystem.Generics.GenericsServices.IsOpenGenericType C# (CSharp) Метод

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

Determines whether a specified type is an open generic type - that is, if it contains generic parameters.
public static IsOpenGenericType ( IType type ) : bool
type IType
Результат bool
        public static bool IsOpenGenericType(IType type)
        {
            return (GetTypeGenerity(type) != 0);
        }

Usage Example

Пример #1
0
 private bool IsFullyConstructed()
 {
     foreach (IType arg in GenericArguments)
     {
         if (GenericsServices.IsOpenGenericType(arg))
         {
             return(false);
         }
     }
     return(true);
 }