Example #1
0
        /// <summary>
        /// Appends the text representation of the character group containing the current instance to the specified <see cref="PatternBuilder"/>.
        /// </summary>
        /// <param name="builder">The builder to use for appending the text.</param>
        /// <exception cref="ArgumentNullException"><paramref name="builder"/> is <c>null</c>.</exception>
        public void AppendExcludedGroupTo(PatternBuilder builder)
        {
            if (builder == null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            builder.AppendCharGroupStart();
            AppendGroupContentTo(builder);
            builder.AppendCharGroupEnd();
        }
Example #2
0
 internal override void AppendTo(PatternBuilder builder)
 {
     builder.AppendCharGroupStart(Negative);
     _group.AppendContentTo(builder);
     builder.AppendCharGroupEnd();
 }