Created
March 22, 2021 14:24
-
-
Save luisdeol/39563bdaee850ab69271885ff1dcc66e to your computer and use it in GitHub Desktop.
Artigo Manipulando Strings com C# - StringBuilder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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