SyntaxGenerator.TryCastExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- type
- ITypeSymbol
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.