tags:

views:

26

answers:

1

How i can compare type data type in VB.NET? My code:

Private Function Equal(ByVal parameter As String, ByVal paramenterName As String, ByVal dataType As Type) As String

    If dataType = String Then
        return 1;
    End If

 End Function

Any ideas?

+3  A: 
If dataType = GetType(String) Then
    return 1;
End If
Darin Dimitrov