// Fields // Results // Business constructor public Session__level( Session session ,IEnumerable<Session__level> prior ,Level value ) { InitializeResults(); _session = new PredecessorObj<Session>(this, GetRoleSession(), session); _prior = new PredecessorList<Session__level>(this, GetRolePrior(), prior); _value = new PredecessorObj<Level>(this, GetRoleValue(), value); }
public CorrespondenceFact CreateFact(FactMemento memento) { Level newFact = new Level(memento); // Create a memory stream from the memento data. using (MemoryStream data = new MemoryStream(memento.Data)) { using (BinaryReader output = new BinaryReader(data)) { newFact._name = (string)_fieldSerializerByType[typeof(string)].ReadData(output); } } return newFact; }