
I am hoping someone can help me simplify the following block of code (I am an amateur developer).
I am trying to return a value (a.tnAddress) from a custom class based on a lookup (foreach loop). Depending on the type of transaction, I will need to do the foreach loop based on different prope...