Gets the general SIM PhoneBook object which can be used to enumerate the PhoneBookEntries which are stored on the SIM card.
General SIM phone book typically contain several hundreds of records (depending on the SIM card capacity) which are not stored sequentially. Thus you can obtain several Empty between a valid records. If you will obtain the null record, it means that the index is out of the valid index range.
Consider using foreach syntax when implementing the records enumeration. PhoneBook class implements the IEnumerable interface and it skips the empty records when using the foreach syntax (or IEnumerator object).
Sim Class | Resco.Phone.SIM Namespace