Class CoreKeyedCollection<K, V>
Inheritance
System.Object
System.Collections.ObjectModel.Collection<V>
System.Collections.ObjectModel.KeyedCollection<K, V>
CoreKeyedCollection<K, V>
Implements
System.Collections.Generic.IList<V>
System.Collections.Generic.ICollection<V>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<V>
System.Collections.Generic.IReadOnlyCollection<V>
System.Collections.Generic.IEnumerable<V>
System.Collections.IEnumerable
Inherited Members
System.Collections.ObjectModel.KeyedCollection<K, V>.Contains(K)
System.Collections.ObjectModel.KeyedCollection<K, V>.Remove(K)
System.Collections.ObjectModel.KeyedCollection<K, V>.ChangeItemKey(V, K)
System.Collections.ObjectModel.KeyedCollection<K, V>.ClearItems()
System.Collections.ObjectModel.KeyedCollection<K, V>.GetKeyForItem(V)
System.Collections.ObjectModel.KeyedCollection<K, V>.InsertItem(System.Int32, V)
System.Collections.ObjectModel.KeyedCollection<K, V>.RemoveItem(System.Int32)
System.Collections.ObjectModel.KeyedCollection<K, V>.SetItem(System.Int32, V)
System.Collections.ObjectModel.KeyedCollection<K, V>.Comparer
System.Collections.ObjectModel.KeyedCollection<K, V>.Item[K]
System.Collections.ObjectModel.KeyedCollection<K, V>.Dictionary
System.Collections.ObjectModel.Collection<V>.Add(V)
System.Collections.ObjectModel.Collection<V>.Clear()
System.Collections.ObjectModel.Collection<V>.CopyTo(V[], System.Int32)
System.Collections.ObjectModel.Collection<V>.Contains(V)
System.Collections.ObjectModel.Collection<V>.GetEnumerator()
System.Collections.ObjectModel.Collection<V>.IndexOf(V)
System.Collections.ObjectModel.Collection<V>.Insert(System.Int32, V)
System.Collections.ObjectModel.Collection<V>.Remove(V)
System.Collections.ObjectModel.Collection<V>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<V>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<V>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<V>.Count
System.Collections.ObjectModel.Collection<V>.Items
System.Collections.ObjectModel.Collection<V>.Item[System.Int32]
System.Collections.ObjectModel.Collection<V>.System.Collections.Generic.ICollection<V>.IsReadOnly
System.Collections.ObjectModel.Collection<V>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<V>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.Item[System.Int32]
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<V>.System.Collections.IList.IsFixedSize
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: CompAnalytics.Contracts
Assembly: CompAnalytics.Contracts.dll
Syntax
[Serializable]
public abstract class CoreKeyedCollection<K, V> : KeyedCollection<K, V>, IList<V>, ICollection<V>, IList, ICollection, IReadOnlyList<V>, IReadOnlyCollection<V>, IEnumerable<V>, IEnumerable
Type Parameters
| Name | Description |
|---|---|
| K | |
| V |
Constructors
CoreKeyedCollection()
Declaration
public CoreKeyedCollection()
CoreKeyedCollection(IEqualityComparer<K>)
Declaration
public CoreKeyedCollection(IEqualityComparer<K> comparer)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEqualityComparer<K> | comparer |
Properties
Indexes
Declaration
public Dictionary<K, int> Indexes { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<K, System.Int32> |
Methods
AddRange(IEnumerable<V>)
Declaration
public void AddRange(IEnumerable<V> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<V> | collection |
ClearItems()
Declaration
protected override void ClearItems()
Overrides
System.Collections.ObjectModel.KeyedCollection<K, V>.ClearItems()
FindIndex(Predicate<V>)
Declaration
public int FindIndex(Predicate<V> match)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Predicate<V> | match |
Returns
| Type | Description |
|---|---|
| System.Int32 |
FindLastIndex(Predicate<V>)
Declaration
public int FindLastIndex(Predicate<V> match)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Predicate<V> | match |
Returns
| Type | Description |
|---|---|
| System.Int32 |
InsertItem(Int32, V)
Declaration
protected override void InsertItem(int index, V item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| V | item |
Overrides
System.Collections.ObjectModel.KeyedCollection<K, V>.InsertItem(System.Int32, V)
InsertRange(Int32, IEnumerable<V>)
Declaration
public void InsertRange(int index, IEnumerable<V> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Collections.Generic.IEnumerable<V> | collection |
RemoveAll(Predicate<V>)
Declaration
public void RemoveAll(Predicate<V> match)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Predicate<V> | match |
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Overrides
System.Collections.ObjectModel.KeyedCollection<K, V>.RemoveItem(System.Int32)
ResetIndexes()
Declaration
protected void ResetIndexes()
SetItem(Int32, V)
Declaration
protected override void SetItem(int index, V item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| V | item |
Overrides
System.Collections.ObjectModel.KeyedCollection<K, V>.SetItem(System.Int32, V)
SetKeyForItem(V, K)
Declaration
protected virtual void SetKeyForItem(V value, K key)
Parameters
| Type | Name | Description |
|---|---|---|
| V | value | |
| K | key |
TryGetValue(K, out V)
Declaration
public bool TryGetValue(K key, out V value)
Parameters
| Type | Name | Description |
|---|---|---|
| K | key | |
| V | value |
Returns
| Type | Description |
|---|---|
| System.Boolean |
UpdateKey(V, K)
Declaration
public void UpdateKey(V value, K key)
Parameters
| Type | Name | Description |
|---|---|---|
| V | value | |
| K | key |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable