/// <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 }