MobileForms Toolkit Documentation

PhoneBook.GetEnumerator Method 

Implements the IEnumerable interface method.

public IEnumerator GetEnumerator();

Return Value

An instance IEnumerator object

Implements

IEnumerable.GetEnumerator

Remarks

This method ensures that the PhoneBook object can be enumerated using the foreach syntax.

Example

List<PhoneBookEntry> GetPhoneBookEntries(PhoneBook pb) { var list = new List<PhoneBookEntry>(); foreach(PhoneBookEntry entry in pb) list.Add(entry); return list; }

See Also

PhoneBook Class | Resco.Phone.SIM Namespace