开发者

what does "timespan?" mean in c#?

开发者 https://www.devze.com 2023-03-08 21:25 出处:网络
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 nu

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

精彩评论

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