C# Class 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.
Inheritance: ResolveResult
Afficher le fichier Open project: 0xd4d/NRefactory Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
LambdaResolveResult ( ) : System.Collections.Generic

Method Details

GetChildResults() public méthode

public GetChildResults ( ) : IEnumerable
Résultat IEnumerable

GetInferredReturnType() public abstract méthode

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
Résultat IType

IsValid() public abstract méthode

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
Résultat Conversion

LambdaResolveResult() protected méthode

protected LambdaResolveResult ( ) : System.Collections.Generic
Résultat System.Collections.Generic