Share via


Block.Flatten Method

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Flattens a collection of a specified type for the block.

Namespace:  System.Web.Razor.Parser.SyntaxTree
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Public Function Flatten As IEnumerable(Of Span)
'Usage
Dim instance As Block 
Dim returnValue As IEnumerable(Of Span)

returnValue = instance.Flatten()
public IEnumerable<Span> Flatten()
public:
IEnumerable<Span^>^ Flatten()
member Flatten : unit -> IEnumerable<Span> 
public function Flatten() : IEnumerable<Span>

Return Value

Type: System.Collections.Generic.IEnumerable<Span>
A collection of a specified type for the block to flatten.

See Also

Reference

Block Class

System.Web.Razor.Parser.SyntaxTree Namespace