The following works fine in c# (assuming value
is an object
):
if (value is DateTime)
What is the equivalent check for VB.NET?
The following works fine in c# (assuming value
is an object
):
if (value is DateTime)
What is the equivalent check for VB.NET?
if (value.GetType() == typeof(DateTime)) {}
If value.[GetType]() = GetType(DateTime) Then
'...
End If