DocFormatProvider.Register Method
- Namespace
- Kampute.DocToolkit.Formatters
- Assembly
- Kampute.DocToolkit.dll
Definition
Registers a documentation formatter for the specified file extensions with the specified factory delegate.
public static void Register<TFormatter>(Func<string, TFormatter> factory, params IEnumerable<string> fileExtensions)
where TFormatter : IDocumentFormatterType Parameters
TFormatter- The type of the documentation formatter to register.
Parameters
factoryFunc<string, TFormatter>- A factory delegate that creates a new instance of the formatter.
fileExtensionsIEnumerable<string>- The file extensions (including the leading period) to register the formatter for.
