Can someone help me convert these statements to VB
Code:
if (_control is BaseDataList)
if (_control is ListControl)
I have tried:
VB Code:
  1. If _control Is BaseDataList Then
  2. End If
  3.  
  4. If _control Is ListControl Then
  5. End If
And
VB Code:
  1. If _control = BaseDataControl Then
  2. End If
  3. If _control = ListControl Then
  4. End If
Either way I get
'BaseDataList' is a type and cannot be used as an expression.
'ListControl' is a type and cannot be used as an expression.


.