Class Strings
Localized string fetcher
Inheritance
System.Object
Strings
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.CST.OAT.Utils
Assembly: OAT.dll
Syntax
public static class Strings
Properties
| Improve this Doc View SourceIsLoaded
If there is any data available in the internal dictionary
Declaration
public static bool IsLoaded { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
| Improve this Doc View SourceGet(String)
Get the string at the key specified in the current locale
Declaration
public static string Get(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key to get |
Returns
| Type | Description |
|---|---|
| System.String | A string looked up from the table or the key itself if not present |
Setup(String)
Load the specified locale's resources. Currently only "" is supported for English.
Declaration
public static void Setup(string locale = "")
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | locale | The name of the locale |