Class XPathDocumentExtensions
- Namespace
- Codebelt.Extensions.Swashbuckle.AspNetCore
- Assembly
- Codebelt.Extensions.Swashbuckle.AspNetCore.dll
Extension methods for the XPathDocument class.
public static class XPathDocumentExtensions
- Inheritance
-
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
documentsIList<XPathDocument>The collection of documents in XML format.
assemblyAssemblyThe assembly to locate XML documentation files by.
Returns
- IList<XPathDocument>
A reference to
documentsso 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
documentsIList<XPathDocument>The collection of documents in XML format.
pathstringThe path to locate XML documentation files by.
Returns
- IList<XPathDocument>
A reference to
documentsso 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
documentsIList<XPathDocument>The collection of documents in XML format.
typeTypeThe type to locate XML documentation files by.
Returns
- IList<XPathDocument>
A reference to
documentsso that additional calls can be chained.