SyntaxFactory.WithExpression 方法

定义

重载

WithExpression(ExpressionSyntax, InitializerExpressionSyntax)

创建新的 WithExpressionSyntax 实例。

WithExpression(ExpressionSyntax, SyntaxToken, InitializerExpressionSyntax)

创建新的 WithExpressionSyntax 实例。

WithExpression(ExpressionSyntax, InitializerExpressionSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

创建新的 WithExpressionSyntax 实例。

public static Microsoft.CodeAnalysis.CSharp.Syntax.WithExpressionSyntax WithExpression (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax initializer);
static member WithExpression : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.WithExpressionSyntax
Public Shared Function WithExpression (expression As ExpressionSyntax, initializer As InitializerExpressionSyntax) As WithExpressionSyntax

参数

expression
ExpressionSyntax

返回

适用于

WithExpression(ExpressionSyntax, SyntaxToken, InitializerExpressionSyntax)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

创建新的 WithExpressionSyntax 实例。

public static Microsoft.CodeAnalysis.CSharp.Syntax.WithExpressionSyntax WithExpression (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken withKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax initializer);
static member WithExpression : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.InitializerExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.WithExpressionSyntax
Public Shared Function WithExpression (expression As ExpressionSyntax, withKeyword As SyntaxToken, initializer As InitializerExpressionSyntax) As WithExpressionSyntax

参数

expression
ExpressionSyntax
withKeyword
SyntaxToken

返回

适用于