Share via


SyntaxGenerator.TryCastExpression Method

Definition

Overloads

TryCastExpression(SyntaxNode, ITypeSymbol)

Creates an expression that denotes an try-cast operation.

TryCastExpression(SyntaxNode, SyntaxNode)

Creates an expression that denotes an try-cast operation.

TryCastExpression(SyntaxNode, ITypeSymbol)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates an expression that denotes an try-cast operation.

public:
 Microsoft::CodeAnalysis::SyntaxNode ^ TryCastExpression(Microsoft::CodeAnalysis::SyntaxNode ^ expression, Microsoft::CodeAnalysis::ITypeSymbol ^ type);
public Microsoft.CodeAnalysis.SyntaxNode TryCastExpression (Microsoft.CodeAnalysis.SyntaxNode expression, Microsoft.CodeAnalysis.ITypeSymbol type);
member this.TryCastExpression : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.ITypeSymbol -> Microsoft.CodeAnalysis.SyntaxNode
Public Function TryCastExpression (expression As SyntaxNode, type As ITypeSymbol) As SyntaxNode

Parameters

expression
SyntaxNode

Returns

Applies to

TryCastExpression(SyntaxNode, SyntaxNode)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates an expression that denotes an try-cast operation.

public:
 abstract Microsoft::CodeAnalysis::SyntaxNode ^ TryCastExpression(Microsoft::CodeAnalysis::SyntaxNode ^ expression, Microsoft::CodeAnalysis::SyntaxNode ^ type);
public abstract Microsoft.CodeAnalysis.SyntaxNode TryCastExpression (Microsoft.CodeAnalysis.SyntaxNode expression, Microsoft.CodeAnalysis.SyntaxNode type);
abstract member TryCastExpression : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function TryCastExpression (expression As SyntaxNode, type As SyntaxNode) As SyntaxNode

Parameters

expression
SyntaxNode
type
SyntaxNode

Returns

Applies to