public static PageSlots <TResource> CreatePageSlots <TResource>(this IComicChapterManager <TResource> chapterManager) { if (chapterManager is null) { throw new System.ArgumentNullException(nameof(chapterManager)); } return(new PageSlots <TResource>(chapterManager)); }
public PageSlots(IComicChapterManager <TResource> chapterManager) : base(chapterManager?.ChapterWithPage?.Pages?.Length ?? 0) { ChapterManager = chapterManager ?? throw new ArgumentNullException(nameof(chapterManager)); }