/// <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; }
/// <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; }