Boo.Lang.Compiler.TypeSystem.Generics.GenericsServices.HasConstructedType C# (CSharp) Method

HasConstructedType() public static method

Checks that at least one constructed occurence of a specified generic definition is present in the specified type's inheritance hierarchy.
public static HasConstructedType ( IType type, IType definition ) : bool
type IType The type in whose hierarchy to search for constructed type.
definition IType The generic type definition whose constructed versions to search for.
return bool
        public static bool HasConstructedType(IType type, IType definition)
        {
            return FindConstructedTypes(type, definition).GetEnumerator().MoveNext();
        }