Skip to main content

textstorage-class

Static class which stores all text resources used in assembly

public class Korzh.Utils.TextStorage

Assembly: Korzh.EasyQuery.dll

Constructors

NameTypeDescription
TextStorage(ResourceManager nativeResources = null)voidInitializes a new instance of the Korzh.Utils.TextStorage class.

Methods

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

Static Methods

NameTypeDescription
GetCurrentCulture()CultureInfoReturns current culture
GetCurrentUICulture()CultureInfoReturns current UI culture