Formatting a string
suggest changeUse 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents