Table of Contents

Class LocalizedTextPropertyCollection

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

Represents all the localized textproperties and their localizations of a EntityObject

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

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

Parameters

key String

The key.

Property Value

LocalizedProperty

The LocalizedProperty.

Keys

Gets the keys.

public ICollection<string> Keys { get; }

Property Value

ICollection<String>

The keys.

Values

Gets the values.

public ICollection<LocalizedProperty> Values { get; }

Property Value

ICollection<LocalizedProperty>

The values.

Methods

Add(KeyValuePair<String, LocalizedProperty>)

Adds the specified item.

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

Parameters

item KeyValuePair<String, LocalizedProperty>

The item.

Add(String, LocalizedProperty)

Adds the specified key.

public void Add(string key, LocalizedProperty value)

Parameters

key String

The key.

value LocalizedProperty

The value.

Clear()

Clears this instance.

public void Clear()

Contains(KeyValuePair<String, LocalizedProperty>)

Determines whether [contains] [the specified item].

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

Parameters

item KeyValuePair<String, LocalizedProperty>

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, LocalizedProperty>[], Int32)

Copies to.

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

Parameters

array KeyValuePair<String, LocalizedProperty>[]

The array.

arrayIndex Int32

Index of the array.

GetEnumerator()

Gets the enumerator.

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

Returns

IEnumerator<KeyValuePair<String, LocalizedProperty>>

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

Removes the specified item.

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

Parameters

item KeyValuePair<String, LocalizedProperty>

The item.

Returns

Boolean

true if removed successfully, else false

Remove(String)

Removes the specified key.

public bool Remove(string key)

Parameters

key String

The key.

Returns

Boolean

true if removed else false

TryGetValue(String, out LocalizedProperty)

Tries the get value.

public bool TryGetValue(string key, out LocalizedProperty value)

Parameters

key String

The key.

value LocalizedProperty

The value.

Returns

Boolean

true if element was found else false

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.