Metalama (preview)API documentationAspect APIMetalama.​Framework.​Code.​Syntax­BuildersStatement­ExtensionsUnwrap­Block
Open sandboxFocus

StatementExtensions.UnwrapBlock Method

UnwrapBlock(IStatement)

Unwraps a block (i.e. remove its braces), if the statement is a block, and returns the resulting IStatementList.

Declaration
public static IStatementList UnwrapBlock(this IStatement statement)
Parameters
Type Name Description
IStatement statement
Returns
Type Description
IStatementList