// Fields // Results // Business constructor public TimeUndelete( TimeDelete undeleted ) { InitializeResults(); _undeleted = new PredecessorObj<TimeDelete>(this, GetRoleUndeleted(), undeleted); }
public CorrespondenceFact CreateFact(FactMemento memento) { TimeDelete newFact = new TimeDelete(memento); // Create a memory stream from the memento data. using (MemoryStream data = new MemoryStream(memento.Data)) { using (BinaryReader output = new BinaryReader(data)) { newFact._unique = (Guid)_fieldSerializerByType[typeof(Guid)].ReadData(output); } } return newFact; }