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