Table of Contents

AddFromReferencePacks Method

Definition

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

AddFromReferencePacks(IList<XPathDocument>, Type)

Adds XML documentation files from installed .NET reference packs that match the assembly of the specified type and its base types.

public static IList<XPathDocument> AddFromReferencePacks(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 .NET reference packs.

Returns

IList<XPathDocument>

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

AddFromReferencePacks<T>(IList<XPathDocument>)

Adds XML documentation files from installed .NET reference packs that match the assembly of T and its base types.

public static IList<XPathDocument> AddFromReferencePacks<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 .NET reference packs.