예제 #1
0
 public Chapter([System.Diagnostics.CodeAnalysis.NotNull]
                string title,
                [System.Diagnostics.CodeAnalysis.NotNull]
                string content,
                [CanBeNull] string authorMessage = null)
 {
     Title       = Check.NotNullOrWhiteSpace(title, nameof(title));
     WordsNumber = content.Length;
     ChapterText = new ChapterText(content, authorMessage);
 }
예제 #2
0
        public Chapter(
            [NotNull] string title,
            [NotNull] string content,
            [CanBeNull] string authorMessage = null
            )
        {
            Title       = Check.NotNullOrWhiteSpace(title, nameof(title));
            WordsNumber = content.Length;

            ChapterText = new ChapterText(content, authorMessage);
        }