AddByType Method
Definition
- Namespace
- Codebelt.Extensions.Swashbuckle.AspNetCore
- Assemblies
- Codebelt.Extensions.Swashbuckle.AspNetCore.dll
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.
AddByType<T>(IList<XPathDocument>)
Adds the assembly of T to the collection of documents.
public static IList<XPathDocument> AddByType<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 to locate XML documentation files by.