Table of Contents

AddFromBaseDirectory Method

Definition

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

AddFromBaseDirectory(IList<XPathDocument>, Type)

Adds XML documentation files from BaseDirectory that match the assembly of the specified type and its base types.

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

Parameters

documents IList<XPathDocument>

The collection of documents in XML format.

type Type

The type whose assembly (and base type assemblies) is used to locate XML documentation files in the base directory.

Returns

IList<XPathDocument>

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

AddFromBaseDirectory<T>(IList<XPathDocument>)

Adds XML documentation files from BaseDirectory that match the assembly of T and its base types.

public static IList<XPathDocument> AddFromBaseDirectory<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 whose assembly (and base type assemblies) is used to locate XML documentation files in the base directory.