Class FileFormats
Inherited Members
Namespace: Tlumach.Base
Assembly: Tlumach.Base.dll
Syntax
public static class FileFormats
Methods
GetConfigParser(string)
Returns a registered parser of configuration files with the given extension.
Declaration
public static BaseParser? GetConfigParser(string extension)
Parameters
| Type | Name | Description |
|---|---|---|
| string | extension | The extension for which the parser is needed. |
Returns
| Type | Description |
|---|---|
| BaseParser | An instance of the found parser or null otherwise. |
GetParser(string, bool)
Returns a registered parser of translation files with the given extension.
Declaration
public static BaseParser? GetParser(string extension, bool getStaticInstance = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | extension | The extension for which the parser is needed. |
| bool | getStaticInstance | When set to true, uses a cached singleton (or creates one if it does not yet exist). This parameter is used by the helper functions. |
Returns
| Type | Description |
|---|---|
| BaseParser | An instance of the found parser or null otherwise. |
GetSupportedExtensions()
Returns the list of extensions registered as recognized for translation files.
Declaration
public static IList<string> GetSupportedExtensions()
Returns
| Type | Description |
|---|---|
| IList<string> | A list of registered extensions, in lowercase. |