Boo.Lang.Compiler.TypeSystem.TypeSystemServices.IsGenericGeneratorReturnType C# (CSharp) Méthode

IsGenericGeneratorReturnType() public méthode

public IsGenericGeneratorReturnType ( IType returnType ) : bool
returnType IType
Résultat bool
        public bool IsGenericGeneratorReturnType(IType returnType)
        {
            return returnType.ConstructedInfo != null &&
                   (returnType.ConstructedInfo.GenericDefinition == IEnumerableGenericType ||
                    returnType.ConstructedInfo.GenericDefinition == IEnumeratorGenericType);
        }
TypeSystemServices