Represents a base class for all kind of grouping constructs including assertions. This class is abstract.
Inheritance: QuantifiablePattern
コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GroupingPattern"/> class with a specified content.
        /// </summary>
        /// <param name="content">A content of the grouping.</param>
        /// <exception cref="ArgumentNullException"><paramref name="content"/> is <c>null</c>.</exception>
        protected GroupingPattern(GroupingPattern content)
        {
            if (content == null)
                throw new ArgumentNullException(nameof(content));

            _content = content.Content;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GroupingPattern"/> class with a specified content.
        /// </summary>
        /// <param name="content">A content of the grouping.</param>
        /// <exception cref="ArgumentNullException"><paramref name="content"/> is <c>null</c>.</exception>
        protected GroupingPattern(GroupingPattern content)
        {
            if (content == null)
            {
                throw new ArgumentNullException(nameof(content));
            }

            Content = content.Content;
        }