Exemplo n.º 1
0
        internal SLTuple Clone()
        {
            SLTuple t = new SLTuple();

            t.Field     = this.Field;
            t.Hierarchy = this.Hierarchy;
            t.Item      = this.Item;

            return(t);
        }
Exemplo n.º 2
0
        internal void FromTuples(Tuples tpls)
        {
            this.SetAllNull();

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

            SLTuple t;

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