Class CombinedModelCollectionView<TBase, TPrimary, TSecondary>
Combined view on a set of model collections.
Inheritance
System.Object
CombinedModelCollectionView<TBase, TPrimary, TSecondary>
Implements
System.Collections.Generic.IList<TBase>
System.Collections.Generic.ICollection<TBase>
System.Collections.Generic.IEnumerable<TBase>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
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()
Assembly: TimeCockpit.Data.dll
Syntax
public class CombinedModelCollectionView<TBase, TPrimary, TSecondary> : IList<TBase>, ICollection<TBase>, IEnumerable<TBase>, IList, ICollection, IEnumerable where TBase : NamedDynamicObject where TPrimary : TBase where TSecondary : TBase
Type Parameters
| Name |
Description |
| TBase |
Base type of encapsulated model collections.
|
| TPrimary |
Primary collection element type.
|
| TSecondary |
Secondary collection element type.
|
Constructors
CombinedModelCollectionView(ModelCollection<TPrimary>, ModelCollection<TSecondary>)
Initializes a new instance of the CombinedModelCollectionView class.
Declaration
public CombinedModelCollectionView(ModelCollection<TPrimary> primary, ModelCollection<TSecondary> secondary)
Parameters
Properties
Count
Declaration
public int Count { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Implements
System.Collections.Generic.ICollection<T>.Count
System.Collections.ICollection.Count
IsFixedSize
Declaration
public bool IsFixedSize { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Implements
System.Collections.IList.IsFixedSize
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Implements
System.Collections.Generic.ICollection<T>.IsReadOnly
System.Collections.IList.IsReadOnly
IsSynchronized
Declaration
public bool IsSynchronized { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Implements
System.Collections.ICollection.IsSynchronized
Item[String]
Gets or sets the element with the specified key via TryGetValue.
Declaration
public TBase this[string key] { get; }
Parameters
| Type |
Name |
Description |
| System.String |
key |
The key of the element to get.
|
Property Value
| Type |
Description |
| TBase |
The element with the specified key.
|
Methods
Add(TBase)
Declaration
public void Add(TBase item)
Parameters
| Type |
Name |
Description |
| TBase |
item |
|
Implements
System.Collections.Generic.ICollection<T>.Add(T)
Add(Object)
Declaration
public int Add(object value)
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
Returns
| Type |
Description |
| System.Int32 |
|
Implements
System.Collections.IList.Add(System.Object)
Clear()
Declaration
Implements
System.Collections.Generic.ICollection<T>.Clear()
System.Collections.IList.Clear()
Contains(TBase)
Declaration
public bool Contains(TBase item)
Parameters
| Type |
Name |
Description |
| TBase |
item |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.Collections.Generic.ICollection<T>.Contains(T)
Contains(String)
Declaration
public bool Contains(string item)
Parameters
| Type |
Name |
Description |
| System.String |
item |
The name of the object to locate in the ModelCollection<T>s.
|
Returns
| Type |
Description |
| System.Boolean |
True if the item is found in the ModelCollection<T>s, otherwise false.
|
CopyTo(TBase[], Int32)
Declaration
public void CopyTo(TBase[] array, int arrayIndex)
Parameters
| Type |
Name |
Description |
| TBase[] |
array |
|
| System.Int32 |
arrayIndex |
|
Implements
System.Collections.Generic.ICollection<T>.CopyTo(T[], System.Int32)
CopyTo(Array, Int32)
Declaration
public void CopyTo(Array array, int index)
Parameters
| Type |
Name |
Description |
| System.Array |
array |
|
| System.Int32 |
index |
|
Implements
System.Collections.ICollection.CopyTo(System.Array, System.Int32)
GetEnumerator()
Declaration
public IEnumerator<TBase> GetEnumerator()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerator<TBase> |
|
Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
IndexOf(TBase)
Declaration
public int IndexOf(TBase item)
Parameters
| Type |
Name |
Description |
| TBase |
item |
|
Returns
| Type |
Description |
| System.Int32 |
|
Implements
System.Collections.Generic.IList<T>.IndexOf(T)
IndexOf(Object)
Declaration
public int IndexOf(object value)
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
Returns
| Type |
Description |
| System.Int32 |
|
Implements
System.Collections.IList.IndexOf(System.Object)
Insert(Int32, TBase)
Declaration
public void Insert(int index, TBase item)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| TBase |
item |
|
Implements
System.Collections.Generic.IList<T>.Insert(System.Int32, T)
Insert(Int32, Object)
Declaration
public void Insert(int index, object value)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| System.Object |
value |
|
Implements
System.Collections.IList.Insert(System.Int32, System.Object)
Remove(TBase)
Declaration
public bool Remove(TBase item)
Parameters
| Type |
Name |
Description |
| TBase |
item |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.Collections.Generic.ICollection<T>.Remove(T)
Remove(Object)
Declaration
public void Remove(object value)
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
Implements
System.Collections.IList.Remove(System.Object)
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Implements
System.Collections.Generic.IList<T>.RemoveAt(System.Int32)
System.Collections.IList.RemoveAt(System.Int32)
TryGetValue(String, out TBase)
Gets the value associated with the specified key.
This method performs the lookup in the SYS, APP, USR order. It checks the primary collection first and then the secondary if there was no primary match!
Declaration
public bool TryGetValue(string key, out TBase value)
Parameters
| Type |
Name |
Description |
| System.String |
key |
The key whose value to get.
|
| TBase |
value |
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter.
This parameter is passed uninitialized.
|
Returns
| Type |
Description |
| System.Boolean |
true if the object that implements System.Collections.Generic.IDictionary<TKey, TValue> contains an element with the specified key; otherwise, false.
|
Explicit Interface Implementations
IList<TBase>.get_Item(Int32)
Declaration
TBase IList<TBase>.get_Item(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
Implements
System.Collections.Generic.IList<T>.get_Item(System.Int32)
IList<TBase>.Item[Int32]
Gets or sets the element at the specified index (CURRENTLY NOT IMPLEMENTED!)
Declaration
TBase IList<TBase>.this[] { get; set; }
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
The zero-based index of the element to get or set (CURRENTLY NOT USED!).
|
Returns
| Type |
Description |
| TBase |
The element at the specified index.
|
Implements
System.Collections.Generic.IList<T>.Item[System.Int32]
Exceptions
| Type |
Condition |
| System.NotImplementedException |
Always thrown because property is currently not implemented.
|
IList<TBase>.set_Item(Int32, TBase)
Declaration
void IList<TBase>.set_Item(int index, TBase value)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| TBase |
value |
|
Implements
System.Collections.Generic.IList<T>.set_Item(System.Int32, T)
ICollection.SyncRoot
Declaration
object ICollection.SyncRoot { get; }
Returns
| Type |
Description |
| System.Object |
|
Implements
System.Collections.ICollection.SyncRoot
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
Implements
System.Collections.IEnumerable.GetEnumerator()
IList.Contains(Object)
Declaration
bool IList.Contains(object value)
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.Collections.IList.Contains(System.Object)
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.Object |
|
Implements
System.Collections.IList.get_Item(System.Int32)
IList.Item[Int32]
Gets or sets the element at the specified index (CURRENTLY NOT IMPLEMENTED!)
Declaration
object IList.this[] { get; set; }
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
The zero-based index of the element to get or set (CURRENTLY NOT USED!).
|
Returns
| Type |
Description |
| System.Object |
The element at the specified index.
|
Implements
System.Collections.IList.Item[System.Int32]
Exceptions
| Type |
Condition |
| System.NotImplementedException |
Always thrown because property is currently not implemented.
|
IList.set_Item(Int32, Object)
Declaration
void IList.set_Item(int index, object value)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| System.Object |
value |
|
Implements
System.Collections.IList.set_Item(System.Int32, System.Object)