Table of Contents

Class XPathDocumentExtensions

Namespace
Cuemon.Extensions.Swashbuckle.AspNetCore
Assembly
Cuemon.Extensions.Swashbuckle.AspNetCore.dll

Extension methods for the System.Xml.XPath.XPathDocument class.

public static class XPathDocumentExtensions
Inheritance
Object
XPathDocumentExtensions

Methods

AddByAssembly(IList<XPathDocument>, Assembly)

Adds the specified assembly to the collection of documents.

public static IList<XPathDocument> AddByAssembly(this IList<XPathDocument> documents, Assembly assembly)

Parameters

documents IList<XPathDocument>

The collection of documents in XML format.

assembly Assembly

The assembly to locate XML documentation files by.

Returns

IList<XPathDocument>

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

AddByFilename(IList<XPathDocument>, String)

Adds the specified path to the collection of documents.

public static IList<XPathDocument> AddByFilename(this IList<XPathDocument> documents, string path)

Parameters

documents IList<XPathDocument>

The collection of documents in XML format.

path String

The path to locate XML documentation files by.

Returns

IList<XPathDocument>

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

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.