I’m having trouble with the logic behind this statement
static Dictionary<string, SavableEntity> gLookup = new Dictionary<string, SavableEntity>();
// check to see if uID is outdated?
if (gLookup[candidate].GetUID() != candidate)
{
gLookup.Remove(candidate);
return true;
}
it seems to me like this check would cause the method to always return true so that anything with matching GUIDs would overwrite each other. What am I missing here?