示例#1
0
        public void SaveNodestateCollectionAsNodeSet2tryout(
            ISystemContext context, NodeStateCollection nsc, Stream stream,
            bool filterSingleNodeIds)
        {
            while (nsc.Count > 2)
            {
                nsc.RemoveAt(1);
            }

            // MICHA TODO TEST
            using (var sw = new StreamWriter("export-nodeset.xml"))
            {
                nsc.SaveAsNodeSet(context, sw.BaseStream);
            }

            using (var sw2 = new StreamWriter("export-nodeset2.xml"))
            {
                nsc.SaveAsNodeSet2(context, sw2.BaseStream);
            }
        }