nullable object must have a value

前端 未结 8 1737
梦如初夏
梦如初夏 2020-11-30 00:17

There is paradox in the exception description: Nullable object must have a value (?!)

This is the problem:

I have a DateTimeExtended class, tha

8条回答
  •  抹茶落季
    2020-11-30 00:41

    Looks like oldDTE.MyDateTime was null, so constructor tried to take it's Value - which threw.

提交回复
热议问题