Changes

Jump to: navigation, search

Formatting Strings in C Sharp

31 bytes added, 13:38, 19 March 2009
A Simple C# String Format Example
There are 2 cats in my house and no dogs
</pre>
<google>ADSDAQBOX_FLOW</google>
Let's quickly review the String.Format() method call. The ''format string'' contains 3 place holders indicated by {0}, {1} and {2}. Following the format string are the arguments to be used in each place holder. For example, {0} is replaced by the first argument (the number 2), the {1} by the second argument (the string "house) and so on.

Navigation menu