Keynotof gevonden uitzondering
public int getLastUniqueID()
{
int lastID = 0;
IsolatedStorageSettings uc = IsolatedStorageSettings.ApplicationSettings;
List medicationList = (List)uc["medicationList"];
foreach (sMedication temp in medicationList) {
lastID = temp.UniqueID;
}
return lastID;
}
Het gebeurt op de volgende regel:
List medicationList = (List)uc["medicationList"];