C# Класс ICSharpCode.NRefactory.CSharp.Resolver.LambdaResolveResult

Represents an anonymous method or lambda expression. Note: the lambda has no type. To retrieve the delegate type, look at the anonymous function conversion.
Наследование: ResolveResult
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetChildResults ( ) : IEnumerable
GetInferredReturnType ( IType parameterTypes ) : IType

Gets the return type inferred when the parameter types are inferred to be parameterTypes

This method determines the return type inferred from the lambda body, which is used as part of C# type inference. Use the ReturnType property to retrieve the actual return type as determined by the target delegate type.

IsValid ( IType parameterTypes, IType returnType, CSharpConversions conversions ) : Conversion

Gets whether the lambda body is valid for the given parameter types and return type.

Защищенные методы

Метод Описание
LambdaResolveResult ( ) : System.Collections.Generic

Описание методов

GetChildResults() публичный Метод

public GetChildResults ( ) : IEnumerable
Результат IEnumerable

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

Gets the return type inferred when the parameter types are inferred to be parameterTypes
This method determines the return type inferred from the lambda body, which is used as part of C# type inference. Use the ReturnType property to retrieve the actual return type as determined by the target delegate type.
public abstract GetInferredReturnType ( IType parameterTypes ) : IType
parameterTypes IType
Результат IType

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

Gets whether the lambda body is valid for the given parameter types and return type.
public abstract IsValid ( IType parameterTypes, IType returnType, CSharpConversions conversions ) : Conversion
parameterTypes IType
returnType IType
conversions CSharpConversions
Результат Conversion

LambdaResolveResult() защищенный Метод

protected LambdaResolveResult ( ) : System.Collections.Generic
Результат System.Collections.Generic