Cast object to decimal? (nullable decimal)

后端 未结 5 1131
天涯浪人
天涯浪人 2020-12-02 22:54

If have this in the setter of a property:

decimal? temp = value as decimal?;

value = \"90\"

But after the cast, temp is nul

5条回答
提交回复
热议问题