Class StringTable
Inheritance
System.Object
StringTable
Syntax
public class StringTable : StringTableBase
Methods
AddKey(String)
Add a new key to the table. Must be unique or it will be ignored.
Declaration
public override void AddKey(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Overrides
GetEntry(String)
Declaration
public StringTableEntry GetEntry(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
GetKeys(HashSet<String>)
Populate the HashSet with all keys in this table.
Allows us to collate the keys from multiple locale for the same table name.
Declaration
public override void GetKeys(HashSet<string> keySet)
Parameters
Type |
Name |
Description |
HashSet<System.String> |
keySet |
|
Overrides
GetLocalizedPluralString(String, Int32)
Declaration
public override string GetLocalizedPluralString(string key, int n)
Parameters
Type |
Name |
Description |
System.String |
key |
Key or the original singular form.
|
System.Int32 |
n |
Plural amount
|
Returns
Type |
Description |
System.String |
The localized plural string. E.G '{0} files removed' or null if one can not be found.
|
Overrides
GetLocalizedString(String)
Returns the localized version of the string or null if one can not be found.
Declaration
public override string GetLocalizedString(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.String |
|
Overrides
RemoveKey(String)
Remove the key if it exists.
Declaration
public override void RemoveKey(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Overrides
ReplaceKey(String, String)
Replace the old key value with the newKey value.
Declaration
public override void ReplaceKey(string key, string newKey)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
newKey |
|
Overrides