Table of Contents

AddByType Method

Definition

Namespace
Codebelt.Extensions.Swashbuckle.AspNetCore
Assemblies
Codebelt.Extensions.Swashbuckle.AspNetCore.dll
Source
src/Codebelt.Extensions.Swashbuckle.AspNetCore/XPathDocumentExtensions.cs

AddByType(IList<XPathDocument>, Type)

Adds the specified type to the collection of documents.

public static IList<XPathDocument> AddByType(this IList<XPathDocument> documents, Type type)

Parameters

documents IList<XPathDocument>

The collection of documents in XML format.

type Type

The type to locate XML documentation files by.

Returns

IList<XPathDocument>

A reference to documents so that additional calls can be chained.

AddByType<T>(IList<XPathDocument>)

Adds the assembly of T to the collection of documents.

public static IList<XPathDocument> AddByType<T>(this IList<XPathDocument> documents)

Parameters

documents IList<XPathDocument>

The collection of documents in XML format.

Returns

IList<XPathDocument>

A reference to documents so that additional calls can be chained.

Type Parameters

T

The type to locate XML documentation files by.