Bloom.Book.Page.Page C# (CSharp) Method

Page() public method

public Page ( Book book, XmlElement sourcePage, string caption, string captionI18nId, XmlElement>.Func getDivNodeForThisPageMethod ) : System
book Book
sourcePage System.Xml.XmlElement
caption string
captionI18nId string
getDivNodeForThisPageMethod XmlElement>.Func
return System
        public Page(Book book, XmlElement sourcePage,  string caption, string captionI18nId, /*Func<IPage, Image> getThumbnail,*/ Func<IPage, XmlElement> getDivNodeForThisPageMethod)
        {
            _id = FixPageId(sourcePage.Attributes["id"].Value);
            var lineage = sourcePage.Attributes["data-pagelineage"];
            _pageLineage = lineage == null ? new string[] {} : lineage.Value.Split(new[] { ',' });

            Guard.AgainstNull(book,"Book");
            Book = book;
            _getDivNodeForThisPageMethod = getDivNodeForThisPageMethod;
            Caption = caption;
            CaptionI18nId = captionI18nId;
            ReadClasses(sourcePage);
            ReadPageTags(sourcePage);
        }