DocFormatProvider.GetFormatterByExtension Method

Namespace
Kampute.DocToolkit.Formatters
Assembly
  • Kampute.DocToolkit.dll

Definition

Gets a documentation formatter based on the specified file extension.
public static IDocumentFormatter GetFormatterByExtension(string fileExtension)

Parameters

fileExtension string
The file extension (including the leading period) to get a documentation formatter for.

Returns

IDocumentFormatter
An instance of a documentation formatter for the specified file extension, or null if no formatter is found.

Exceptions

ArgumentNullException
Thrown when fileExtension is null.