Class CoreLocalizableString
Inheritance
System.Object
CoreLocalizableString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Nui.ServiceModel.Extensions
Assembly: Terrasoft.Nui.ServiceModel.dll
Syntax
public static class CoreLocalizableString
Methods
ToDictionary(LocalizableString)
Converts localizable string culture values to dictionary.
Declaration
public static Dictionary<string, string> ToDictionary(this LocalizableString source)
Parameters
Type | Name | Description |
---|---|---|
LocalizableString | source |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> |
ToDictionary(LocalizableString, CultureInfo)
Converts localizable string to the dictionary.
Declaration
public static Dictionary<string, string> ToDictionary(this LocalizableString source, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
LocalizableString | source | Localizable string. |
System.Globalization.CultureInfo | culture | The target culture. |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | The dictionary, where key is the target culture name, value is the string value for the current culture. |