|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Foreach and IEnumerator
Hello everyone,
Two questions, 1. How foreach utilizes the IEnumerator interface and IEnumerable interface? Any there any docuements? I am interested in it. 2. Pros and cons compared with using foreach and using simple index variable to iterate? Like, Code:
for (int i = 0; i < abc.Count; i++)
{
// access abc [i] here
}
thanks in advance, George |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > Foreach and IEnumerator |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|