一名前同事這樣寫道:解釋混亂的條件字符串格式
String.Format("{0:#;;} {1:records;no records;record}", rows, rows - 1);
//Rows is a integer value
我喜歡讀這些
Code Project - Custom String Formatting in .NET
MSDN - Custom Numeric Format Strings
文章,但我不仍然得到它是如何該格式作品。顯然我可以看到輸出,但我不明白這部分{0:#;;}
和第二個。我想爲指定年齡(年,年...)做同樣的事情
我很好奇這個字符串格式。有人可以解釋這種行爲嗎?作者不再和我們一起工作。
[The'';''Section Separator](http://msdn.microsoft.com/en-us/library/0c899ak8%28v=vs.110%29.aspx#SectionSeparator) – dasblinkenlight 2014-09-02 16:41:36