Created
August 11, 2015 23:57
-
-
Save mikebranstein/1bf1eb22825229609d0d to your computer and use it in GitHub Desktop.
Preferred String Concatenation Technique (using String.Format)
This file contains 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 name = "Mike"; | |
var age = 77; | |
var concat = String.Format("My name is {0}, and I am {1} years old.", name, age); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment