Public Class EquipmentNode
'...
End Class
Private Sub DoWork()
Dim node As TreeNode = _contextNode
If node is EquipmentNode ' Does not work
if node is TypeOf EquipmentNode ' Does not work
End Sub
如何查看节点是否为同一类型。现在我只是投射它并查看结果是否为空,但我想使用“Is”运算符。