IEnumerator GetEnumerator  ) 
 

IEnumerator interface implementation.

This will allow you to use foreach statement with AfDalList object. Here is an example:

    AfDalList customers = Customers.GetList (0, 0);
    if (customers.State != State.Ok) {
         Console.WriteLine ("Unable to get actual customer list");
         return;
    }

    // Iterate over all elements
    foreach (Customer c in customers) {
         Console.WriteLine ("Customer name: " + c.Name);
    }

Returns:
A IEnumerator object used as interface by foreach statement.