开发者

what does "timespan?" mean in c#?

what does the question mark mean at the end of the variable?

TimeSpan? begin = // bla bla bla

The c开发者_如何学运维oding language is c#


This is Nullable type. It means that value of begin can be null or a timespan

TimeSpan? and Nullable<Timespan> is same thing


TimeSpan? means you're declaring a nullable type. A type which can support null values.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜