public Tuple <IEnumerable <ConversationNode <TNodeUI, TTransitionUI> >, IEnumerable <NodeGroup <ConversationNode <TNodeUI, TTransitionUI> > > > Read(Stream stream) { var serializer = new XMLConversation <TNodeUI, TTransitionUI, TUIRawData> .Deserializer(m_source, m_nodeFactory, m_nodeUISerializer); var data = serializer.Read(stream); return(new Tuple <IEnumerable <ConversationNode <TNodeUI, TTransitionUI> >, IEnumerable <NodeGroup <ConversationNode <TNodeUI, TTransitionUI> > > >(data.Item1.Evaluate(), data.Item2.Evaluate())); }
public void Write(Tuple <IEnumerable <ConversationNode <TNodeUI, TTransitionUI> >, IEnumerable <NodeGroup <ConversationNode <TNodeUI, TTransitionUI> > > > data, Stream stream) { var serializer = new XMLConversation <TNodeUI, TTransitionUI, TUIRawData> .Serializer(m_nodeUISerializer); serializer.Write(data, stream); }