Visual Basic Is Operator , (unlike C # is an operator ), does not tell you about the type of object, but rather, whether the variables of two objects will refer to the same instance of the actual object.
The Is operator determines whether references to two objects refer to the same object.
This will not indicate if the object is a particular type.
To compare types, you should use:
If TypeOf node Is EquipmentNode Then
source share