I have a customer who is curious about the difference between the "To more specific class" and " To more generic class" functions since they sometimes have the same output for both parent and class input.
To More Specific and To More Generic only control the wire type. Dynamic dispatch works off the type of data on the wire. The class instance (data) is the same regardless of the wire type so the dispatch goes to the same thing.
To More Specific would be appropriate for casting Parent to Child. To More Generic would be appropriate for casting Child To Parent. It is generally expected To More Specific to cause an error casting Child To Parent because Parent is not a more specific type but the LVOOP allows that. So using To More Generic to cast Parent to Child is not broken.
Collaborate with other users in our discussion forums
A valid service agreement or active software subscription may be required, and support options vary by country.
Helpful
Not Helpful