I'm currently working in ASP.NET with C# and ran into some problems.
I have the following class:
public class AvailableTicket
{
public IEnumerable<Jazz> jazz;
public IEnumerable<Dining> dining;
public IEnumerable<Walking> walking;
public IEnumerable<Talking> talking;
public IEnumerable<Ticket> tickets;
public int amountToOrder;
public string Option;
}
In the view, I'd like to loop through the IEnumerables in the class. I've looked up GetType().GetProperties but I'm stuck here.
What do I use in the foreach to only select the IEnumerable in the object?
Thank you for your time.