XmlDocExtensions.WithCaching Method

Namespace
Kampute.DocToolkit.XmlDoc
Assembly
  • Kampute.DocToolkit.dll

Definition

Wraps the specified IXmlDocProvider instance in a caching layer if it is not already cached.
public static IXmlDocProvider WithCaching(this IXmlDocProvider xmlDocProvider)

Parameters

xmlDocProvider IXmlDocProvider
The XML documentation provider to wrap.

Returns

IXmlDocProvider
A cached version of the XML documentation provider.

Exceptions

ArgumentNullException
Thrown when xmlDocProvider is null.