internal BooleanItem ToBooleanItem()
        {
            BooleanItem bi = new BooleanItem();

            bi.Val = this.Val;
            if (this.Unused != null)
            {
                bi.Unused = this.Unused.Value;
            }
            if (this.Calculated != null)
            {
                bi.Calculated = this.Calculated.Value;
            }
            if (this.Caption != null && this.Caption.Length > 0)
            {
                bi.Caption = this.Caption;
            }
            if (this.PropertyCount != null)
            {
                bi.PropertyCount = this.PropertyCount.Value;
            }

            foreach (int i in this.MemberPropertyIndexes)
            {
                if (i != 0)
                {
                    bi.Append(new MemberPropertyIndex()
                    {
                        Val = i
                    });
                }
                else
                {
                    bi.Append(new MemberPropertyIndex());
                }
            }

            return(bi);
        }
        internal BooleanItem ToBooleanItem()
        {
            var bi = new BooleanItem();

            bi.Val = Val;
            if (Unused != null)
            {
                bi.Unused = Unused.Value;
            }
            if (Calculated != null)
            {
                bi.Calculated = Calculated.Value;
            }
            if ((Caption != null) && (Caption.Length > 0))
            {
                bi.Caption = Caption;
            }
            if (PropertyCount != null)
            {
                bi.PropertyCount = PropertyCount.Value;
            }

            foreach (var i in MemberPropertyIndexes)
            {
                if (i != 0)
                {
                    bi.Append(new MemberPropertyIndex {
                        Val = i
                    });
                }
                else
                {
                    bi.Append(new MemberPropertyIndex());
                }
            }

            return(bi);
        }
        internal BooleanItem ToBooleanItem()
        {
            BooleanItem bi = new BooleanItem();
            bi.Val = this.Val;
            if (this.Unused != null) bi.Unused = this.Unused.Value;
            if (this.Calculated != null) bi.Calculated = this.Calculated.Value;
            if (this.Caption != null && this.Caption.Length > 0) bi.Caption = this.Caption;
            if (this.PropertyCount != null) bi.PropertyCount = this.PropertyCount.Value;

            foreach (int i in this.MemberPropertyIndexes)
            {
                if (i != 0) bi.Append(new MemberPropertyIndex() { Val = i });
                else bi.Append(new MemberPropertyIndex());
            }

            return bi;
        }