Formatting a string C# with Example



Formatting a string C# with 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 

0 Comment's

Comment Form

Submit Comment