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
Mostra file Open project: 0xd4d/NRefactory Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
LambdaResolveResult ( ) : System.Collections.Generic

Method Details

GetChildResults() public method

public GetChildResults ( ) : IEnumerable
return IEnumerable

GetInferredReturnType() public abstract method

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
return IType

IsValid() public abstract method

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
return Conversion

LambdaResolveResult() protected method

protected LambdaResolveResult ( ) : System.Collections.Generic
return System.Collections.Generic