EyeshotKeyedCollection<T> Class

Base class for Eyeshot keyed collections.
Public MustInherit Class EyeshotKeyedCollection(Of  _ 
T As IKeyedCollectionItem(Of T)) 
Inherits KeyedCollection(Of String, T)
This language is not supported or no code example is available.
public abstract class EyeshotKeyedCollection<T> : KeyedCollection<string, T> 
where T : IKeyedCollectionItem<T>
This language is not supported or no code example is available.

Type Parameters

T

The dictionary value type

Name Description
Protected constructor EyeshotKeyedCollection() Initializes a new instance of the EyeshotKeyedCollection<T> class that uses the default equality comparer.
Protected constructor EyeshotKeyedCollection(IEnumerable<T>, IEqualityComparer<String>) Initializes a new instance of the EyeshotKeyedCollection<T> class that uses the specified equality comparer from another IEnumerable<T> collection.
Protected constructor EyeshotKeyedCollection(IEqualityComparer<String>) Initializes a new instance of the EyeshotKeyedCollection<T> class that uses the specified equality comparer.
Protected constructor EyeshotKeyedCollection(IEqualityComparer<String>, int) Initializes a new instance of the EyeshotKeyedCollection<T> class that uses the specified equality comparer and creates a lookup dictionary when the specified threshold is exceeded.
Top
Name Description
Public property Comparer (inherited from KeyedCollection<TKey, TItem>).
Public property Item(int) Gets or sets the element at the specified index.
Public property Item(string) Gets the element with the specified name.
Top
Methods
 
Name Description
Public method Add(T) Adds one item at the end of this collection.
Public method AddOrReplace(T) Adds or replaces an element.
Public method AddRange(IEnumerable<T>) Adds the items of the specified collection to the end of this collection.
Protected method AreEntitiesWith(string, IList<Entity>) Tells if there are some entities using this dictionary element.
Protected method AreEntitiesWith(string) Tells if there are some entities using this element.
Internal protected (Protected Friend) method Static AreEqualStrings(string, string)
Internal protected (Protected Friend) method ChangeEntitiesRegenMode(IEnumerable<Entity>, string) Changes the entities RegenMode according to the replaced item.
Internal protected (Protected Friend) method ChangeEntitiesRegenMode(string) Changes the RegenMode for all the Workspace Entities according to the replaced item.
Protected method ChangeItemKey(TItem, TKey) (inherited from KeyedCollection<TKey, TItem>).
Internal protected (Protected Friend) method CheckItemIndex(int, bool) Checks if an index is valid for the collection.
Internal protected (Protected Friend) method CheckItemKey(string, bool) Checks if a key exists in the collection.
Protected method ClearItems() Removes all elements from the collection.
Public method Contains(TKey) (inherited from KeyedCollection<TKey, TItem>).
Protected method GetKeyForItem(TItem) (inherited from KeyedCollection<TKey, TItem>).
Protected method InsertItem(int, T) Inserts an element into the collection at the specified index.
Protected method ItemCanBeRemoved(T, string) Checks if a specific item is used somewhere.
Public method Remove(TKey) (inherited from KeyedCollection<TKey, TItem>).
Protected method RemoveItem(int)
Public method ReplaceItem(T) Replaces the element with the same key.
Protected method SetItem(int, T)
Public method TryAdd(T) Adds an element only if not already present in the collection.
Public method TryGetValue(string, out T) Gets the value associated with the specified key.
Public method TryRemove(T) Removes the item form the collection, if present.
Public method TryRemove(string) Removes the value associated with the specified key form the collection, if present.
Top
Fields
 
Name Description
Internal protected (Protected Friend) field EyeshotKeyedCollection.Workspace The related Workspace
Top

.NET Framework

Supported in: 4.7.2

In this article

Definition