VB equivalent for C#'s default(T)
vb与c s
与
这是其中之一:
1 2 3 4 | Dim variable As T Dim variable As T = Nothing Dim variable As New T() Dim variable As T = CType(Nothing, T) 'this is suggested by reflector |
在vb.net中,将
vb与c s
与
这是其中之一:
1 2 3 4 | Dim variable As T Dim variable As T = Nothing Dim variable As New T() Dim variable As T = CType(Nothing, T) 'this is suggested by reflector |
在vb.net中,将