Skip to content

Instantly share code, notes, and snippets.

@dannylloyd
Created October 4, 2011 13:04
Show Gist options
  • Select an option

  • Save dannylloyd/1261595 to your computer and use it in GitHub Desktop.

Select an option

Save dannylloyd/1261595 to your computer and use it in GitHub Desktop.
Takes argument of dataRow and formats the string with column names
'This "Hello {FirstName} {LastName}".FormatWith(dataRow) is the same as this String.Format("Hello {1} {2}", firstName, lastName)
"Text {ColumnName1} {ColumnName1}".FormatWith(dataRow)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment