Changes

Formatting Strings in C Sharp

18 bytes added, 16:24, 24 January 2008
The Syntax of the String.Format() Method
String.Format(''format string", ''arg1'', ''arg2'', .... );
The ''format string'' is the string into which the values will be placed. Within this string are ''place holders'' which indicate the location of each value within the string. Place holders take the form of braces surrounding a number indicating the corresponding argument to be substituted for the place holder. Following on from the ''format string'' is a comma separated list of arguments. There must be an argument for each of the place holders.
== A Simple C# String Format Example ==