// Fields // Results // Business constructor public Win( Bid bid ) { InitializeResults(); _bid = new PredecessorObj<Bid>(this, RoleBid, bid); }
public CorrespondenceFact CreateFact(FactMemento memento) { Bid newFact = new Bid(memento); // Create a memory stream from the memento data. using (MemoryStream data = new MemoryStream(memento.Data)) { using (BinaryReader output = new BinaryReader(data)) { newFact._chances = (int)_fieldSerializerByType[typeof(int)].ReadData(output); } } return newFact; }