Esempio n. 1
0
 public static CCXDataSet LoadCCX(string fileName)
 {
     var ds = new CCXDataSet();
     var ccxtext = File.ReadAllText(fileName);
     using (var srdr = new StringReader(ccxtext.Replace("xsi:type=", "C8Type=")))
     {
         ds.ReadXml(srdr);
     }
     return ds;
 }
Esempio n. 2
0
        public void MethodName()
        {
            var C8ProgDS = new CCXDataSet();
            var CCX = C8ProgDS;
            C8ProgDS.ReadXml("sdf");
            var tdref = new HashSet<string>();
            foreach (var c8strm in  C8ProgDS.Stream )
            {
                if (!tdref.Contains(c8strm.TupleDescriptorRef))
                {

                    tdref.Add(c8strm.TupleDescriptorRef);
                }
            }

            //Type tp;
            //tp.
            //var tdesc = CCX.TupleDescriptor.Where(tdrow => tdrow.Name == "sdf").Single();
            //foreach (C8cx.CCXDataSet.FieldRow fr in tdesc.GetFieldRows())
            //{
            //    fieldRow.Name
            //}
        }