Share via


SyntaxFactory.WithExpression Method

Definition

Overloads

WithExpression(ExpressionSyntax, InitializerExpressionSyntax)

Creates a new WithExpressionSyntax instance.

WithExpression(ExpressionSyntax, SyntaxToken, InitializerExpressionSyntax)

Creates a new WithExpressionSyntax instance.

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

Creates a new WithExpressionSyntax instance.

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

Parameters

expression
ExpressionSyntax

Returns

Applies to

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

Creates a new WithExpressionSyntax instance.

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

Parameters

expression
ExpressionSyntax
withKeyword
SyntaxToken

Returns

Applies to