34,333
edits
Changes
→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.