What does IFormatProvider do?

后端 未结 8 2199
一向
一向 2021-01-30 12:27

I was playing around with the Datetime.ParseExact method, and it wants an IFormatProvider...

It works inputting null, but what exactly does it do?

8条回答
  •  粉色の甜心
    2021-01-30 13:03

    The DateTimeFormatInfo class implements this interface, so it allows you to control the formatting of your DateTime strings.

提交回复
热议问题