Table of Contents

Class LocalizedValueCollection

Namespace
TimeCockpit.Data.Localization
Assembly
TimeCockpit.Data.dll

Represents a collection of LocalizedValue objects

public class LocalizedValueCollection : DynamicObject, IDynamicMetaObjectProvider, IDictionary<string, LocalizedValue>, ICollection<KeyValuePair<string, LocalizedValue>>, IEnumerable<KeyValuePair<string, LocalizedValue>>, IEnumerable
Inheritance
Object
LocalizedValueCollection
Implements
IDynamicMetaObjectProvider
IDictionary<String, LocalizedValue>
ICollection<KeyValuePair<String, LocalizedValue>>
IEnumerable<KeyValuePair<String, LocalizedValue>>
IEnumerable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Properties

Count

Gets the count.

public int Count { get; }

Property Value

Int32

The count.

IsReadOnly

Gets a value indicating whether this instance is read only.

public bool IsReadOnly { get; }

Property Value

Boolean

true if this instance is read only; otherwise, false.

Item[String]

Gets or sets the LocalizedValue with the specified key.

public LocalizedValue this[string key] { get; set; }

Parameters

key String

The key.

Property Value

LocalizedValue

The LocalizedValue.

Keys

Gets the keys.

public ICollection<string> Keys { get; }

Property Value

ICollection<String>

The keys.

Values

Gets the values.

public ICollection<LocalizedValue> Values { get; }

Property Value

ICollection<LocalizedValue>

The values.

Methods

Add(KeyValuePair<String, LocalizedValue>)

Adds the specified item.

public void Add(KeyValuePair<string, LocalizedValue> item)

Parameters

item KeyValuePair<String, LocalizedValue>

The item.

Add(String, LocalizedValue)

Adds the specified key.

public void Add(string key, LocalizedValue value)

Parameters

key String

The key.

value LocalizedValue

The value.

Clear()

Clears this instance.

public void Clear()

Contains(KeyValuePair<String, LocalizedValue>)

Determines whether [contains] [the specified item].

public bool Contains(KeyValuePair<string, LocalizedValue> item)

Parameters

item KeyValuePair<String, LocalizedValue>

The item.

Returns

Boolean

true if [contains] [the specified item]; otherwise, false.

ContainsKey(String)

Determines whether the specified key contains key.

public bool ContainsKey(string key)

Parameters

key String

The key.

Returns

Boolean

true if the specified key contains key; otherwise, false.

CopyTo(KeyValuePair<String, LocalizedValue>[], Int32)

Copies to.

public void CopyTo(KeyValuePair<string, LocalizedValue>[] array, int arrayIndex)

Parameters

array KeyValuePair<String, LocalizedValue>[]

The array.

arrayIndex Int32

Index of the array.

GetEnumerator()

Gets the enumerator.

public IEnumerator<KeyValuePair<string, LocalizedValue>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<String, LocalizedValue>>

an enumerator

GetMember(String)

Gets the value of a CLR property.

public override object GetMember(string name)

Parameters

name String

Name of the member to get.

Returns

Object

Reference to the dynamic member.

Remove(KeyValuePair<String, LocalizedValue>)

Removes the specified item.

public bool Remove(KeyValuePair<string, LocalizedValue> item)

Parameters

item KeyValuePair<String, LocalizedValue>

The item.

Returns

Boolean

a key value pair of string and LocalizedValue

Remove(String)

Removes the specified key.

public bool Remove(string key)

Parameters

key String

The key.

Returns

Boolean

true if removed successfully, else false

TryGetValue(String, out LocalizedValue)

Tries the get value.

public bool TryGetValue(string key, out LocalizedValue value)

Parameters

key String

The key.

value LocalizedValue

The value.

Returns

Boolean

An instance of LocalizedValue

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerator IEnumerable.GetEnumerator()

Returns

IEnumerator

An System.Collections.IEnumerator object that can be used to iterate through the collection.