Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public PageSlots(IComicChapterManager <TResource> chapterManager)
     : base(chapterManager?.ChapterWithPage?.Pages?.Length ?? 0)
 {
     ChapterManager = chapterManager ?? throw new ArgumentNullException(nameof(chapterManager));
 }