Open main menu
Changes
Formatting Strings in C Sharp
3 bytes removed
,
16:22, 24 January 2008
→
A Simple C# String Format Example
<pre>
string newString;
newString = String.Format("There are {0} cats in my {1} and no {2}", 2, "house", "dogs");
System.Console.WriteLine (newString);
</pre>
← Older edit
Newer edit →
Neil
Bureaucrat
,
administrator
34,333
edits