Our training courses

Other training resources

Our training venues

Why we are different

Details for nimrod1313

nimrod1313 has participated in the following threads:

Added by nimrod1313 on 11 Apr 2019 at 18:22

Your sample code IS NOT iterating through the values of the enum. All the code does is iterate through all the numbers that exist between Brilliant ( i.e.0) and Amazing (i.e. 2).

To prove this assign values to the enums like brilliant = 1 , fantastic = 5 , Amazing = 10.  Now when you run the code you should get a return of 1,5,10 BUT YOU DON'T you get a return of  1,2,3,4,5,6,7,8,9,10.  So it's not iterating through the 3 enum values it's just spitting out numbers. between 1 and 10.

Head office

Kingsmoor House

Railway Street

GLOSSOP

SK13 2AA

London

Landmark Offices

99 Bishopsgate

LONDON

EC2M 3XD

Manchester

Holiday Inn

25 Aytoun Street

MANCHESTER

M1 3AE

© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.

End of small page here
Please be aware that our website uses cookies!
I'm OK with this Tell me more ...