Class TranslatedStringDictionary
A custom dictionary type to distinguish language specific class properties.
Inheritance
System.Object
System.Collections.Generic.Dictionary<System.String, System.String>
TranslatedStringDictionary
Inherited Members
System.Collections.Generic.Dictionary<System.String, System.String>.Add(System.String, System.String)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.Add(System.Collections.Generic.KeyValuePair<System.String, System.String>)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.Contains(System.Collections.Generic.KeyValuePair<System.String, System.String>)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.Remove(System.Collections.Generic.KeyValuePair<System.String, System.String>)
System.Collections.Generic.Dictionary<System.String, System.String>.Clear()
System.Collections.Generic.Dictionary<System.String, System.String>.ContainsKey(System.String)
System.Collections.Generic.Dictionary<System.String, System.String>.ContainsValue(System.String)
System.Collections.Generic.Dictionary<System.String, System.String>.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>>.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.String>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.Dictionary<System.String, System.String>.OnDeserialization(System.Object)
System.Collections.Generic.Dictionary<System.String, System.String>.Remove(System.String)
System.Collections.Generic.Dictionary<System.String, System.String>.TryGetValue(System.String, System.String)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, System.String>[], System.Int32)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.Add(System.Object, System.Object)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.Contains(System.Object)
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.GetEnumerator()
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.Remove(System.Object)
System.Collections.Generic.Dictionary<System.String, System.String>.Comparer
System.Collections.Generic.Dictionary<System.String, System.String>.Count
System.Collections.Generic.Dictionary<System.String, System.String>.Keys
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IDictionary<System.String, System.String>.Keys
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.String>.Keys
System.Collections.Generic.Dictionary<System.String, System.String>.Values
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IDictionary<System.String, System.String>.Values
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.String>.Values
System.Collections.Generic.Dictionary<System.String, System.String>.Item[System.String]
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.String>>.IsReadOnly
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.IsFixedSize
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.IsReadOnly
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.Keys
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.Values
System.Collections.Generic.Dictionary<System.String, System.String>.System.Collections.IDictionary.Item[System.Object]
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: System.Dynamic.ExpandoObject
Syntax
public class TranslatedStringDictionary : Dictionary<string, string>, IDictionary<string, string>, ICollection<KeyValuePair<string, string>>, IDictionary, ICollection, IReadOnlyDictionary<string, string>, IReadOnlyCollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, IEnumerable, ISerializable, IDeserializationCallback
Constructors
TranslatedStringDictionary()
Declaration
public TranslatedStringDictionary()
TranslatedStringDictionary(IDictionary<String, String>)
Declaration
public TranslatedStringDictionary(IDictionary<string, string> dictionary)
Parameters
IDictionary<System.String, System.String>
dictionary
|
TranslatedStringDictionary(Int32)
Declaration
public TranslatedStringDictionary(int capacity)
Parameters
System.Int32
capacity
|
Methods
FromJson(String)
Declaration
public static TranslatedStringDictionary FromJson(string data)
Parameters
System.String
data
|
Returns
TranslatedStringDictionary
|
GetTranslation(String)
Get a translation; fallback to x-default if specified language does not exist.
Declaration
public string GetTranslation(string twoLetterIsoLanguageName = null)
Parameters
System.String
twoLetterIsoLanguageName
The language to retrieve; fallback to CultureInfo.CurrentCulture.TwoLetterISOLanguageName if not specified. |
Returns
System.String
The translated string. |
ToJson()
Declaration
public string ToJson()
Returns
System.String
|