Search Results for

    Show / Hide Table of Contents

    Class LocalizedTextPropertyCollection

    Represents all the localized textproperties and their localizations of a EntityObject

    Inheritance
    System.Object
    DynamicObject
    LocalizedTextPropertyCollection
    Implements
    System.Dynamic.IDynamicMetaObjectProvider
    System.Collections.Generic.IDictionary<System.String, LocalizedProperty>
    System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty>>
    System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty>>
    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 LocalizedTextPropertyCollection : DynamicObject, IDynamicMetaObjectProvider, IDictionary<string, LocalizedProperty>, ICollection<KeyValuePair<string, LocalizedProperty>>, IEnumerable<KeyValuePair<string, LocalizedProperty>>, 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 LocalizedProperty with the specified key.

    Declaration
    public LocalizedProperty this[string key] { get; set; }
    Parameters
    Type Name Description
    System.String key

    The key.

    Property Value
    Type Description
    LocalizedProperty

    The LocalizedProperty.

    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<LocalizedProperty> Values { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<LocalizedProperty>

    The values.

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

    Methods

    Add(KeyValuePair<String, LocalizedProperty>)

    Adds the specified item.

    Declaration
    public void Add(KeyValuePair<string, LocalizedProperty> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty> item

    The item.

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

    Add(String, LocalizedProperty)

    Adds the specified key.

    Declaration
    public void Add(string key, LocalizedProperty value)
    Parameters
    Type Name Description
    System.String key

    The key.

    LocalizedProperty 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, LocalizedProperty>)

    Determines whether [contains] [the specified item].

    Declaration
    public bool Contains(KeyValuePair<string, LocalizedProperty> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty> 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, LocalizedProperty>[], Int32)

    Copies to.

    Declaration
    public void CopyTo(KeyValuePair<string, LocalizedProperty>[] array, int arrayIndex)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty>[] 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, LocalizedProperty>> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty>>

    An instance of 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, LocalizedProperty>)

    Removes the specified item.

    Declaration
    public bool Remove(KeyValuePair<string, LocalizedProperty> item)
    Parameters
    Type Name Description
    System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty> item

    The item.

    Returns
    Type Description
    System.Boolean

    true if removed successfully, else false

    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 else false

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

    TryGetValue(String, out LocalizedProperty)

    Tries the get value.

    Declaration
    public bool TryGetValue(string key, out LocalizedProperty value)
    Parameters
    Type Name Description
    System.String key

    The key.

    LocalizedProperty value

    The value.

    Returns
    Type Description
    System.Boolean

    true if element was found else false

    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