Types comparison in VB.NET

Как я могу сравнить тип данных в 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?

20
задан abatishchev 25 October 2010 в 08:16
поделиться