https://learn.microsoft.com/en-in/dotnet/api/system.text.stringbuilder.chunkenumerator?view=net-9.0
StringBuilder.ChunkEnumerator Struct (System.Text) | Microsoft Learn
Supports simple iteration over the chunks of a StringBuilder instance.
stringbuilderstructsystemtextmicrosoft