Skip to content

Instantly share code, notes, and snippets.

@luisdeol
Created March 22, 2021 14:24
Show Gist options
  • Save luisdeol/39563bdaee850ab69271885ff1dcc66e to your computer and use it in GitHub Desktop.
Save luisdeol/39563bdaee850ab69271885ff1dcc66e to your computer and use it in GitHub Desktop.
Artigo Manipulando Strings com C# - StringBuilder
using System;
using System.Text;
namespace ManipulandoStrings
{
class Program
{
static void Main(string[] args)
{
var nomes = new string[] { "Luis", "Francisco", "Leonardo", "Ivan", "Lucas", "Paulo" };
var stringBuilder = new StringBuilder();
foreach (var nome in nomes) {
stringBuilder.AppendLine($"Seja bem-vindo {nome}");
}
Console.WriteLine(stringBuilder);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment