Table of Contents

Class FileFormats

Namespace
Tlumach.Base
Assembly
Tlumach.Base.dll
public static class FileFormats
Inheritance
FileFormats
Inherited Members

Methods

GetConfigParser(string)

Returns a registered parser of configuration files with the given extension.

public static BaseParser? GetConfigParser(string extension)

Parameters

extension string

The extension for which the parser is needed.

Returns

BaseParser

An instance of the found parser or null otherwise.

GetParser(string, bool)

Returns a registered parser of translation files with the given extension.

public static BaseParser? GetParser(string extension, bool getStaticInstance = false)

Parameters

extension string

The extension for which the parser is needed.

getStaticInstance bool

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

BaseParser

An instance of the found parser or null otherwise.

GetSupportedExtensions()

Returns the list of extensions registered as recognized for translation files.

public static IList<string> GetSupportedExtensions()

Returns

IList<string>

A list of registered extensions, in lowercase.