Search Results for

    Show / Hide Table of Contents

    Class LocalizedValueCollection

    Represents a collection of LocalizedValue objects

    Inheritance
    System.Object
    DynamicObject
    LocalizedValueCollection
    Implements
    System.Dynamic.IDynamicMetaObjectProvider
    System.Collections.Generic.IDictionary<System.String, LocalizedValue>
    System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, LocalizedValue>>
    System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, LocalizedValue>>
    System.Collections.IEnumerable
    Inherited Members
    DynamicObject.SetMember(String, Object)
    DynamicObject.GetMetaObject(Expression)
    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: 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
    System.Collections.Generic.ICollection<T>.Count

    IsReadOnly

    Gets a value indicating whether this instance is read only.

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean

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

    Implements
    System.Collections.Generic.ICollection<T>.IsReadOnly

    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
    System.Collections.Generic.IDictionary<TKey, TValue>.Item[TKey]

    Keys

    Gets the keys.

    Declaration
    public ICollection<string> Keys { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<System.String>

    The keys.

    Implements
    System.Collections.Generic.IDictionary<TKey, TValue>.Keys

    Values

    Gets the values.

    Declaration
    public ICollection<LocalizedValue> Values { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<LocalizedValue>

    The values.

    Implements
    System.Collections.Generic.IDictionary<TKey, TValue>.Values

    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
    System.Collections.Generic.ICollection<T>.Add(T)

    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
    System.Collections.Generic.IDictionary<TKey, TValue>.Add(TKey, TValue)

    Clear()

    Clears this instance.

    Declaration
    public void Clear()
    Implements
    System.Collections.Generic.ICollection<T>.Clear()

    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

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

    Implements
    System.Collections.Generic.ICollection<T>.Contains(T)

    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

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

    Implements
    System.Collections.Generic.IDictionary<TKey, TValue>.ContainsKey(TKey)

    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
    System.Collections.Generic.ICollection<T>.CopyTo(T[], System.Int32)

    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
    System.Collections.Generic.IEnumerable<T>.GetEnumerator()

    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
    DynamicObject.GetMember(String)

    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
    System.Collections.Generic.ICollection<T>.Remove(T)

    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
    System.Collections.Generic.IDictionary<TKey, TValue>.Remove(TKey)

    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
    System.Collections.Generic.IDictionary<TKey, TValue>.TryGetValue(TKey, TValue)

    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.

    Implements
    System.Collections.IEnumerable.GetEnumerator()
    In This Article
    Back to top Copyright © 2020 software architects gmbh