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 : IDocumentFormatter

Type Parameters

TFormatter
The type of the documentation formatter to register.

Parameters

factory Func<string, TFormatter>
A factory delegate that creates a new instance of the formatter.
fileExtensions IEnumerable<string>
The file extensions (including the leading period) to register the formatter for.