Пример #1
0
        internal void FromTuples(Tuples tpls)
        {
            SetAllNull();

            if (tpls.MemberNameCount != null)
            {
                MemberNameCount = tpls.MemberNameCount.Value;
            }

            SLTuple t;

            using (var oxr = OpenXmlReader.Create(tpls))
            {
                while (oxr.Read())
                {
                    if (oxr.ElementType == typeof(Tuple))
                    {
                        t = new SLTuple();
                        t.FromTuple((Tuple)oxr.LoadCurrentElement());
                        Tuples.Add(t);
                    }
                }
            }
        }