The fixed text is any string that you choose , and each format item corresponds to an object or boxed structure in the list 源字符串包含被一个或多个格式项分隔开的零个或多个固定文本段。固定文本可以包含您选择的任何内容。
To replace one or more format item placeholders in a string with the text representation of one or more numeric , date and time , or enumeration values ,可将字符串中的一个或多个格式项占位符替换为一个或多个数字、日期和时间或枚举值的文本表示形式。
For example , consider the format item " 0 : d " , which is intended to display an opening brace , a numeric value formatted as a decimal number , and a closing brace 例如,考虑要显示一个左大括号、一个格式化为十进制数的数值和一个右大括号的格式项“ { { { 0 : d } } } ” 。
Replaces each indexed format item embedded in a source string with the formatted equivalent of a corresponding element in a list of values System . io . textwriter的输出方法的支持,该功能可以将嵌入源字符串中的每个索引格式项替换为值列表中对应元素的格式化等效项。
That is , the format item whose parameter specifier is 0 formats the first object in the list , the format item whose parameter specifier is 1 formats the second object in the list , and so on 也就是说,参数说明符为0的格式项格式化列表中的第一个值,参数说明符为1的格式项格式化列表中的第二个值,依次类推。