IMethodSymbol.Construct Method

Definition

Overloads

Construct(ITypeSymbol[])

Returns a constructed method given its type arguments.

Construct(ImmutableArray<ITypeSymbol>, ImmutableArray<NullableAnnotation>)

Returns a constructed method given its type arguments and type argument nullable annotations.

Construct(ITypeSymbol[])

Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs

Returns a constructed method given its type arguments.

C#
public Microsoft.CodeAnalysis.IMethodSymbol Construct(params Microsoft.CodeAnalysis.ITypeSymbol[] typeArguments);

Parameters

typeArguments
ITypeSymbol[]

The immediate type arguments to be replaced for type parameters in the method.

Returns

Applies to

Roslyn 4.13.0 and other versions
Product Versions
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0

Construct(ImmutableArray<ITypeSymbol>, ImmutableArray<NullableAnnotation>)

Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs
Source:
IMethodSymbol.cs

Returns a constructed method given its type arguments and type argument nullable annotations.

C#
public Microsoft.CodeAnalysis.IMethodSymbol Construct(System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ITypeSymbol> typeArguments, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.NullableAnnotation> typeArgumentNullableAnnotations);

Parameters

typeArguments
ImmutableArray<ITypeSymbol>
typeArgumentNullableAnnotations
ImmutableArray<NullableAnnotation>

Returns

Applies to

Roslyn 4.13.0 and other versions
Product Versions
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0