Class Text
- Namespace
- Shift.Common.Base
- Assembly
- Shift.Common.dll
public sealed class Text : IEnumerable<KeyValuePair<string, string>>, IEnumerable
- Inheritance
-
Text
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
Text()
Fields
DefaultLanguage
public const string DefaultLanguage = "en"
Field Value
- string
SupportedLanguages
public string[] SupportedLanguages
Field Value
- string[]
Properties
Count
public int Count { get; }
Property Value
- int
Default
public string Default { get; set; }
Property Value
- string
IsEmpty
public bool IsEmpty { get; }
Property Value
- bool
this[string]
public string this[string language] { get; set; }
Parameters
language string
Property Value
- string
this[string, string]
public string this[string language, string dialect] { get; set; }
Parameters
language string
dialect string
Property Value
- string
Languages
public IEnumerable<string> Languages { get; }
Property Value
- IEnumerable<string>
Methods
Clear()
Clone()
Returns
- Text
Exists(string)
public bool Exists(string language)
Parameters
language string
Returns
- bool
Get(string)
public string Get(string language)
Parameters
language string
Returns
- string
GetEnumerator()
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
Returns
- IEnumerator<KeyValuePair<string, string>>
GetKey(string, string)
public static string GetKey(string language, string dialect)
Parameters
language string
dialect string
Returns
- string
IsEqual(Text)
public bool IsEqual(Text other)
Parameters
other Text
Returns
- bool
RemoveEmptyItems()
public bool RemoveEmptyItems()
Returns
- bool
Set(Text)
public void Set(Text value)
Parameters
value Text