Created
May 31, 2012 14:32
-
-
Save ChrisMissal/2843776 to your computer and use it in GitHub Desktop.
String interpolations in C#
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 userName = "ChrisMissal"; | |
var someString = "Hello, my name is $(userName), nice to meet you!"; | |
var a = "Now is $(DateTime.Now)."; | |
var b = "Tomorrow will be $(DateTime.Now.AddDays(1))"; | |
var c = "This list has $(list.Count()) items."; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, I can get on board with that. I'm fine with whatever syntax, I just feel that something needs to be implemented. I believe the syntax I posted is how Boo does it.