コード例 #1
0
        /// <inheritdoc/>
        public FixedStringSegment Build()
        {
            var segment = new FixedStringSegment(
                @string: _string,
                optional: _optional,
                occurrences: _occurences,
                parent: _parent?.Build(),
                children: _children.Select(s => s.Build())
                );

            return(segment);
        }
コード例 #2
0
        /// <inheritdoc/>
        public VariableStringSegment Build()
        {
            var segment = new VariableStringSegment(
                variableName: _variableName,
                optional: _optional,
                occurrences: _occurences,
                parent: _parent?.Build(),
                children: _children.Select(s => s.Build())
                );

            return(segment);
        }