Пример #1
0
        public HtmlContentFormatter(IHtmlFeatureFormatter htmlFeatureFormatter, HtmlIndexFormatter htmlIndexFormatter, HtmlImageRelocator htmlImageRelocator)
        {
            if (htmlFeatureFormatter == null) throw new ArgumentNullException("htmlFeatureFormatter");
            if (htmlIndexFormatter == null) throw new ArgumentNullException("htmlIndexFormatter");

            this.htmlFeatureFormatter = htmlFeatureFormatter;
            this.htmlIndexFormatter = htmlIndexFormatter;
            this.htmlImageRelocator = htmlImageRelocator;
        }
Пример #2
0
        public HtmlContentFormatter(IHtmlFeatureFormatter htmlFeatureFormatter, HtmlIndexFormatter htmlIndexFormatter, HtmlImageRelocator htmlImageRelocator)
        {
            if (htmlFeatureFormatter == null)
            {
                throw new ArgumentNullException("htmlFeatureFormatter");
            }
            if (htmlIndexFormatter == null)
            {
                throw new ArgumentNullException("htmlIndexFormatter");
            }

            this.htmlFeatureFormatter = htmlFeatureFormatter;
            this.htmlIndexFormatter   = htmlIndexFormatter;
            this.htmlImageRelocator   = htmlImageRelocator;
        }