ArrayList of Objects

Object 'Section' has an array list of 'Column' objects.
Column object has an int field called 'subColumns'

int a = Section.Column[<instance>].subColumns;

How do I access this field?  I don't want to do a foreach.

Thank you!
Who is Participating?
codeshelpConnect With a Mentor Author Commented:
Cancel figured it out, just cast it to a tempColumn.

Column tempColumn            = (Column)Section.Column[instance];
codeshelpAuthor Commented:
refunding points
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.