DocFormatProvider.GetRequiredFormatterByExtension Method
- Namespace
- Kampute.DocToolkit.Formatters
- Assembly
- Kampute.DocToolkit.dll
Definition
Gets a documentation formatter based on the specified file extension or throws an exception if no formatter is found.
public static IDocumentFormatter GetRequiredFormatterByExtension(string fileExtension)Parameters
fileExtensionstring- 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.
Exceptions
- ArgumentNullException
- Thrown when
fileExtensionisnull. - NotSupportedException
- Thrown when no formatter is found for the specified file extension.
