AddFromReferencePacks Method
Definition
- Namespace
- Codebelt.Extensions.Swashbuckle.AspNetCore
- Assemblies
- Codebelt.Extensions.Swashbuckle.AspNetCore.dll
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
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 .NET reference packs.
Returns
- IList<XPathDocument>
A reference to
documentsso 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
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 .NET reference packs.