VB equivalent for C#'s default(T)

后端 未结 2 1979
后悔当初
后悔当初 2021-02-01 12:39

What is VB\'s equivalent for C#\'s default(T)

2条回答
  •  抹茶落季
    2021-02-01 12:50

    The closest equivalent to default(T) is really CType(Nothing, T) since it can be used in any context that default(T) is used (i.e. as an expression).

提交回复
热议问题