开发者

VB.NET: Why doesn't this nullable work?

开发者 https://www.devze.com 2023-01-30 13:03 出处:网络
dim str as nullable(of string) is this syntax incorr开发者_Python百科ect?Nullable(Of T) is only applicable to non-nullable value types. String is a class - a reference type. A variable of type Strin
dim str as nullable(of string)

is this syntax incorr开发者_Python百科ect?


Nullable(Of T) is only applicable to non-nullable value types. String is a class - a reference type. A variable of type String can already have a null value.

0

精彩评论

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