SyntaxFactory.Block Method

Definition

Overloads

Block(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxList<StatementSyntax>, SyntaxToken)

Creates a new BlockSyntax instance.

Block(SyntaxToken, SyntaxList<StatementSyntax>, SyntaxToken)

Creates a new BlockSyntax instance.

Block(SyntaxList<AttributeListSyntax>, SyntaxList<StatementSyntax>)

Creates a new BlockSyntax instance.

Block(SyntaxList<StatementSyntax>)

Creates a new BlockSyntax instance.

Block(StatementSyntax[])

Creates a new BlockSyntax instance.

Block(IEnumerable<StatementSyntax>)

Creates a new BlockSyntax instance.

Block(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxList<StatementSyntax>, SyntaxToken)

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
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new BlockSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken openBraceToken, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.SyntaxToken closeBraceToken);
static member Block : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (attributeLists As SyntaxList(Of AttributeListSyntax), openBraceToken As SyntaxToken, statements As SyntaxList(Of StatementSyntax), closeBraceToken As SyntaxToken) As BlockSyntax

Parameters

openBraceToken
SyntaxToken
closeBraceToken
SyntaxToken

Returns

Applies to

Block(SyntaxToken, SyntaxList<StatementSyntax>, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.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:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs
Source:
BlockSyntax.cs

Creates a new BlockSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ Block(Microsoft::CodeAnalysis::SyntaxToken openBraceToken, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::SyntaxToken closeBraceToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (Microsoft.CodeAnalysis.SyntaxToken openBraceToken, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.SyntaxToken closeBraceToken);
static member Block : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (openBraceToken As SyntaxToken, statements As SyntaxList(Of StatementSyntax), closeBraceToken As SyntaxToken) As BlockSyntax

Parameters

openBraceToken
SyntaxToken
closeBraceToken
SyntaxToken

Returns

Applies to

Block(SyntaxList<AttributeListSyntax>, SyntaxList<StatementSyntax>)

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
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new BlockSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements);
static member Block : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (attributeLists As SyntaxList(Of AttributeListSyntax), statements As SyntaxList(Of StatementSyntax)) As BlockSyntax

Parameters

Returns

Applies to

Block(SyntaxList<StatementSyntax>)

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
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 BlockSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements = default);
static member Block : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (Optional statements As SyntaxList(Of StatementSyntax) = Nothing) As BlockSyntax

Parameters

Returns

Applies to

Block(StatementSyntax[])

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Creates a new BlockSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ Block(... cli::array <Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^> ^ statements);
public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (params Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax[] statements);
static member Block : Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax[] -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (ParamArray statements As StatementSyntax()) As BlockSyntax

Parameters

statements
StatementSyntax[]

Returns

Applies to

Block(IEnumerable<StatementSyntax>)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Creates a new BlockSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ Block(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^> ^ statements);
public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements);
static member Block : seq<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (statements As IEnumerable(Of StatementSyntax)) As BlockSyntax

Parameters

Returns

Applies to