Formatting a string

Download c# eBook

Example

Use the String.Format() method to replace one or more items in the string with the string representation of a specified object:

String.Format("Hello {0} Foo {1}", "World", "Bar") //Hello World Foo Bar

Stats

Contributors: 3
2016-07-26
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook