/// <summary> /// Initializes a new instance of the <see cref="Change"/> class /// using the data read from persistent storage. /// </summary> /// <param name="ed">The mechanism for reading back content.</param> protected Change(EditDeserializer ed) { m_Sequence = ed.ReadUInt32(DataField.Id); m_When = ed.ReadDateTime(DataField.When); // Handle old files //if (ed.IsNextField(DataField.When)) // m_When = ed.ReadDateTime(DataField.When); //else // m_When = DateTime.Now; // could perhaps grab the session start time }
/// <summary> /// Initializes a new instance of the <see cref="IdMapping"/> class /// using the data read from persistent storage. /// </summary> /// <param name="editDeserializer">The mechanism for reading back content.</param> internal IdMapping(EditDeserializer editDeserializer) { m_InternalId = editDeserializer.ReadInternalId(DataField.Id); m_RawId = editDeserializer.ReadUInt32(DataField.Key); }