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
-
ObjectLocalizedTextPropertyCollection
- Implements
-
IDynamicMetaObjectProviderIEnumerable
- 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
trueif 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
keyStringThe key.
Property Value
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
itemKeyValuePair<String, LocalizedProperty>The item.
Add(String, LocalizedProperty)
Adds the specified key.
public void Add(string key, LocalizedProperty value)
Parameters
keyStringThe key.
valueLocalizedPropertyThe 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
itemKeyValuePair<String, LocalizedProperty>The item.
Returns
- Boolean
trueif [contains] [the specified item]; otherwise,false.
ContainsKey(String)
Determines whether the specified key contains key.
public bool ContainsKey(string key)
Parameters
keyStringThe key.
Returns
- Boolean
trueif the specified key contains key; otherwise,false.
CopyTo(KeyValuePair<String, LocalizedProperty>[], Int32)
Copies to.
public void CopyTo(KeyValuePair<string, LocalizedProperty>[] array, int arrayIndex)
Parameters
arrayKeyValuePair<String, LocalizedProperty>[]The array.
arrayIndexInt32Index 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
nameStringName 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
itemKeyValuePair<String, LocalizedProperty>The item.
Returns
- Boolean
true if removed successfully, else false
Remove(String)
Removes the specified key.
public bool Remove(string key)
Parameters
keyStringThe 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
keyStringThe key.
valueLocalizedPropertyThe 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.