Jump to content

Polymorphic type checking?


Recommended Posts

In VB.Net, you can use an expression like "TypeOf obj Is Node", which will return True if obj is a Node, or if it is a type that inherits from Node.

How can I use a Simio expression to do something similar, to return True if an object is either a Server, or is subclassed from a Server (or a subclass of a subclass of a Server, etc)?
Simio's "Is" keyword doesn't respect polymorphism.

Link to comment
Share on other sites

×
×
  • Create New...