AddFromBaseDirectory Method
Definition
- Namespace
- Codebelt.Extensions.Swashbuckle.AspNetCore
- Assemblies
- Codebelt.Extensions.Swashbuckle.AspNetCore.dll
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
documentsIList<XPathDocument>The collection of documents in XML format.
typeTypeThe type whose assembly (and base type assemblies) is used to locate XML documentation files in the base directory.
Returns
- IList<XPathDocument>
A reference to
documentsso 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
documentsIList<XPathDocument>The collection of documents in XML format.
Returns
- IList<XPathDocument>
A reference to
documentsso that additional calls can be chained.
Type Parameters
TThe type whose assembly (and base type assemblies) is used to locate XML documentation files in the base directory.