示例#1
0
        internal SLTuple Clone()
        {
            var t = new SLTuple();

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

            return(t);
        }
示例#2
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);
                    }
                }
            }
        }