.net ToString() format documentation

后端 未结 5 1409
感情败类
感情败类 2021-02-20 08:06

I saw a code snippet the other day that converts a Boolean value to the corresponding \"Yes\"/\"No\" value:

CDbl(True).ToString(\"Yes;Yes;No\")

5条回答
  •  粉色の甜心
    2021-02-20 08:49

    Steve-X has the best documentation for String.Format I've seen so far: Steve-X ToString()

    I know you asked for "ToString", but ToString is dependent to the implementation you are calling (i.e. DateTime.ToString(), decimal.ToString...etc).

    If you are really interested in how it works bust open reflector and peruse the code.

提交回复
热议问题