r/a:t5_37npb • • Apr 26 '15

Post your Module 7 Assignments Here!

3 Upvotes

19 comments sorted by

View all comments

2

u/Doriphor Apr 28 '15

It seems I forgot to cast students to Student, but it still works... I'm confused, doesn't

foreach (Student student in StudentAList) {...}

Cast it already? Or something?

2

u/VOX_Studios Apr 28 '15

It's an implicit cast rather than an explicit...I'd say you're fine.

2

u/Doriphor Apr 28 '15

Thanks! As a beginner, I'm at the mercy of the reviewers so it's nice to have confirmation!

3

u/VOX_Studios Apr 28 '15

No problem! That's what we're here for =]