Class LocalizedValueCollection
Represents a collection of LocalizedValue objects
Implements
Inherited Members
Namespace: TimeCockpit.Data.Localization
Assembly: TimeCockpit.Data.dll
Syntax
public class LocalizedValueCollection : DynamicObject, IDynamicMetaObjectProvider, IDictionary<string, LocalizedValue>, ICollection<KeyValuePair<string, LocalizedValue>>, IEnumerable<KeyValuePair<string, LocalizedValue>>, IEnumerable
Properties
Count
Gets the count.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The count. |
Implements
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Implements
Item[String]
Gets or sets the LocalizedValue with the specified key.
Declaration
public LocalizedValue this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Property Value
Type | Description |
---|---|
LocalizedValue | The LocalizedValue. |
Implements
Keys
Gets the keys.
Declaration
public ICollection<string> Keys { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<System.String> | The keys. |
Implements
Values
Gets the values.
Declaration
public ICollection<LocalizedValue> Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<LocalizedValue> | The values. |
Implements
Methods
Add(KeyValuePair<String, LocalizedValue>)
Adds the specified item.
Declaration
public void Add(KeyValuePair<string, LocalizedValue> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, LocalizedValue> | item | The item. |
Implements
Add(String, LocalizedValue)
Adds the specified key.
Declaration
public void Add(string key, LocalizedValue value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
LocalizedValue | value | The value. |
Implements
Clear()
Clears this instance.
Declaration
public void Clear()
Implements
Contains(KeyValuePair<String, LocalizedValue>)
Determines whether [contains] [the specified item].
Declaration
public bool Contains(KeyValuePair<string, LocalizedValue> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, LocalizedValue> | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Implements
ContainsKey(String)
Determines whether the specified key contains key.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Implements
CopyTo(KeyValuePair<String, LocalizedValue>[], Int32)
Copies to.
Declaration
public void CopyTo(KeyValuePair<string, LocalizedValue>[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, LocalizedValue>[] | array | The array. |
System.Int32 | arrayIndex | Index of the array. |
Implements
GetEnumerator()
Gets the enumerator.
Declaration
public IEnumerator<KeyValuePair<string, LocalizedValue>> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, LocalizedValue>> | an enumerator |
Implements
GetMember(String)
Gets the value of a CLR property.
Declaration
public override object GetMember(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the member to get. |
Returns
Type | Description |
---|---|
System.Object | Reference to the dynamic member. |
Overrides
Remove(KeyValuePair<String, LocalizedValue>)
Removes the specified item.
Declaration
public bool Remove(KeyValuePair<string, LocalizedValue> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, LocalizedValue> | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean | a key value pair of string and LocalizedValue |
Implements
Remove(String)
Removes the specified key.
Declaration
public bool Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Returns
Type | Description |
---|---|
System.Boolean | true if removed successfully, else false |
Implements
TryGetValue(String, out LocalizedValue)
Tries the get value.
Declaration
public bool TryGetValue(string key, out LocalizedValue value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
LocalizedValue | value | The value. |
Returns
Type | Description |
---|---|
System.Boolean | An instance of LocalizedValue |
Implements
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |