Skip to content

Instantly share code, notes, and snippets.

@marcioalthmann
Created July 27, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcioalthmann/de9b6c666029439ce9f2 to your computer and use it in GitHub Desktop.
Save marcioalthmann/de9b6c666029439ce9f2 to your computer and use it in GitHub Desktop.
Comparação string.format e string interpolation
var nome = "Márcio";
var idade = 31;
var stringFormat = string.Format("Nome: {0}, Idade: {1}", nome, idade);
var stringInterpolation = $"Nome: {nome}, Idade: {idade}";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment