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

fileExtension string
The file extension (including the leading period) of the source format.
transformer ITextTransformer
When this method returns, contains the text transformer for the specified file extension, if found; otherwise, null. This parameter is passed uninitialized.

Returns

bool
true if a format transformer was found for the specified file extension; otherwise, false.