Iterating through all phrases of an exception
Posted: Fri Nov 13, 2020 12:35 pm
Hi,
I'm trying to figure out how to get the very last phrase in a commitment exception with nested phrases.
For example:
I have a list of exceptions and Ill get the last exception in the list of exceptions as such,
IOrderItem previousException = (IOrderItem)newExceptions[newExceptions.Count-1];
Lets say this returns an exception that has a child phrase, and that child phrase is another exception, and then that child has a phrase that is an exception. How would I get the very last child phrase in this exception with nested child phrases (exceptions)?
I'm trying to figure out how to get the very last phrase in a commitment exception with nested phrases.
For example:
I have a list of exceptions and Ill get the last exception in the list of exceptions as such,
IOrderItem previousException = (IOrderItem)newExceptions[newExceptions.Count-1];
Lets say this returns an exception that has a child phrase, and that child phrase is another exception, and then that child has a phrase that is an exception. How would I get the very last child phrase in this exception with nested child phrases (exceptions)?