can someone please give me some examples where enumeration is used? i dont understand the concept. i mean both IEnumerable and enum?
have you used enum? please show me sample code
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To elaborate on Berry’s post:
An ENUM is a user-defined type. With the enumerator above, you can create as many instances of Title as you would like.
An IEnumerable is an Array of enumerable types. Most helpful to me using the foreach statement.
will produce the following output: