string.format format string containing {

后端 未结 5 755
半阙折子戏
半阙折子戏 2020-12-07 04:31

Is there a way for the format string used in a call to string.format to contain a { character that is not used for substring insertion?

For example how could I do th

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 05:16

    Here's an article that explains how to escape the curly brace in string.format with a few examples and some good reading.

    http://msdn.microsoft.com/en-us/netframework/aa569608#Question2

    EDIT: Adding useful text to accompany link :)

提交回复
热议问题