// Get the next object to be serialized.
protected virtual Object GetNext(out long objID)
{
Object next = m_objectQueue.Dequeue();
bool firstTime;
objID = m_idGenerator.HasId(next, out firstTime);
if (!firstTime)
{
throw new SerializationException
(_("Serialize_NoObjectID"));
}
return(next);
}