TextTransformerRegistry.TryGet Method
- Namespace
- Kampute.DocToolkit.Formatters
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to get a text transformer for the specified file extension.
public bool TryGet(string fileExtension, [NotNullWhen(true)] out ITextTransformer transformer)Parameters
fileExtensionstring- The file extension (including the leading period) of the source format.
transformerITextTransformer- When this method returns, contains the text transformer for the specified file extension, if found; otherwise,
null. This parameter is passed uninitialized.
