// Fields // Results // Business constructor public OutcomeAcknowledge( Player player ,Outcome outcome ) { InitializeResults(); _player = new PredecessorObj<Player>(this, RolePlayer, player); _outcome = new PredecessorObj<Outcome>(this, RoleOutcome, outcome); }
public CorrespondenceFact CreateFact(FactMemento memento) { Outcome newFact = new Outcome(memento); // Create a memory stream from the memento data. using (MemoryStream data = new MemoryStream(memento.Data)) { using (BinaryReader output = new BinaryReader(data)) { newFact._resigned = (int)_fieldSerializerByType[typeof(int)].ReadData(output); } } return newFact; }