Dan*_*anP 7 vb.net c#-to-vb.net
以下在c#中工作正常(假设value是object):
if (value is DateTime)
Run Code Online (Sandbox Code Playgroud)
什么是VB.NET的等效检查?
if (value.GetType() is typeof(DateTime)) {}
Run Code Online (Sandbox Code Playgroud)
If value.[GetType]() Is GetType(DateTime) Then
'...
End If
Run Code Online (Sandbox Code Playgroud)