Partager via


CSharpExtensions.GetConversion Method

Definition

Overloads

GetConversion(SemanticModel, SyntaxNode, CancellationToken)
GetConversion(IConversionOperation)

Gets the underlying Conversion information from this IConversionOperation. This IConversionOperation must have been created from CSharp code.

GetConversion(SemanticModel, SyntaxNode, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
public static Microsoft.CodeAnalysis.CSharp.Conversion GetConversion (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.SyntaxNode expression, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.CSharp.Conversion GetConversion (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.SyntaxNode expression, System.Threading.CancellationToken cancellationToken = default);
static member GetConversion : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.SyntaxNode * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CSharp.Conversion
<Extension()>
Public Function GetConversion (semanticModel As SemanticModel, expression As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As Conversion

Parameters

semanticModel
SemanticModel
expression
SyntaxNode
cancellationToken
CancellationToken

Returns

Applies to

GetConversion(IConversionOperation)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Gets the underlying Conversion information from this IConversionOperation. This IConversionOperation must have been created from CSharp code.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::CSharp::Conversion GetConversion(Microsoft::CodeAnalysis::Operations::IConversionOperation ^ conversionExpression);
public static Microsoft.CodeAnalysis.CSharp.Conversion GetConversion (this Microsoft.CodeAnalysis.Operations.IConversionOperation conversionExpression);
static member GetConversion : Microsoft.CodeAnalysis.Operations.IConversionOperation -> Microsoft.CodeAnalysis.CSharp.Conversion
<Extension()>
Public Function GetConversion (conversionExpression As IConversionOperation) As Conversion

Parameters

conversionExpression
IConversionOperation

The conversion expression to get original info from.

Returns

The underlying Conversion.

Exceptions

If the IConversionOperation was not created from CSharp code.

Applies to