TextStorage class

Static class which stores all text resources used in assembly

public class Korzh.Utils.TextStorage

Package: Korzh.EasyQuery (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.dll

Constructors

Name Type Description
TextStorage(ResourceManager nativeResources = null) void Initializes a new instance of the Korzh.Utils.TextStorage class.

Methods

Name Type Description
Get(string id) string Gets the string by its ID
LoadFromFile(string path) void Loads text resources from file.
LoadFromFileForCulture(string baseFileName, CultureInfo cultureInfo = null, string fileExt = properties) void Loads resources from .properties like file for indicated culture.
LoadFromResources(ResourceManager resManager) void Loads texts from ResourceManager object.
LoadFromStream(Stream input) void Loads this Korzh.Utils.TextStorage object from System.IO.Stream object.
LoadFromTextReader(TextReader reader) void Loads this Korzh.Utils.TextStorage object from System.IO.TextReader object.
Put(string key, string value) void Adds new resource item with specified key and value.

Static Methods

Name Type Description
GetCurrentCulture() CultureInfo Returns current culture
GetCurrentUICulture() CultureInfo Returns current UI culture