Created
July 27, 2015 23:39
-
-
Save marcioalthmann/de9b6c666029439ce9f2 to your computer and use it in GitHub Desktop.
Comparação string.format e string interpolation
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
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