/// <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); }
/// <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); }