Boo.Lang.Compiler.TypeSystem.TypeSystemServices.IsGenericGeneratorReturnType C# (CSharp) Method

IsGenericGeneratorReturnType() public method

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