recls C# mapping (release 12th October 2003)

DirectoryParts.GetEnumerator Method 

Creates an enumerator for the entries matching the given DirectoryParts

[Visual Basic]
NotOverridable Public Function GetEnumerator() As IEnumerator Implements _
   IEnumerable.GetEnumerator
[C#]
public IEnumerator GetEnumerator();

Return Value

An IEnumerator for the DirectoryParts.

Implements

IEnumerable.GetEnumerator

Remarks

This method enables a DirectoryParts instance to be used in a foreach expression, as in:

            
            DirectoryParts parts = . . .;
            foreach(string part in parts)
            {
              Console.WriteLine(part);
            }
            

See Also

DirectoryParts Class | recls Namespace