示例#1
0
        /// <summary>
        ///     Create a new MAML generator with the specified documentation extractors
        /// </summary>
        /// <param name="documentationExtractors">
        ///     The documentation extractors, in the order they should be used.
        /// </param>
        public MamlGenerator(IEnumerable <IDocumentationExtractor> documentationExtractors)
        {
            if (documentationExtractors == null)
            {
                throw new ArgumentNullException(nameof(documentationExtractors));
            }

            DocumentationExtractors.AddRange(documentationExtractors);
        }
示例#2
0
        /// <summary>
        ///     Create a new MAML generator with the specified documentation extractors
        /// </summary>
        /// <param name="documentationExtractors">
        ///     The documentation extractors, in the order they should be used.
        /// </param>
        public MamlGenerator(IEnumerable <IDocumentationExtractor> documentationExtractors)
        {
            if (documentationExtractors == null)
            {
                throw new ArgumentNullException(nameof(documentationExtractors));
            }
            if (documentationExtractors.Any(item => item == null))
            {
                throw new ArgumentNullException(nameof(documentationExtractors), "List had null element.");
            }

            DocumentationExtractors.AddRange(documentationExtractors);
        }