Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikebranstein/1bf1eb22825229609d0d to your computer and use it in GitHub Desktop.
Save mikebranstein/1bf1eb22825229609d0d to your computer and use it in GitHub Desktop.
Preferred String Concatenation Technique (using String.Format)
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