> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.utility/yarn.compiler.utility.extractstringblocks.md).

# ExtractStringBlocks(IEnumerable\<Node>,ProjectDebugInfo)

Method in [Utility](/api/csharp/yarn.compiler/yarn.compiler.utility.md)

## Summary

Gets the collection of contiguous runs of lines in the provided nodes. Each run of lines is guaranteed to run to completion once entered.

```csharp
public static List<List<string>> ExtractStringBlocks(IEnumerable<Node> nodes, ProjectDebugInfo projectDebugInfo)
```

## Parameters

| Name                                                                                                           | Description                                                 |
| -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| `System.Collections.Generic.IEnumerable<Yarn.Node>` nodes                                                      | The nodes to get string blocks for.                         |
| [Yarn.Compiler.ProjectDebugInfo](/api/csharp/yarn.compiler/yarn.compiler.projectdebuginfo.md) projectDebugInfo | An object containing debugging information for the project. |

## Returns

A collection of runs of lines.
