PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Keyed­Collection(TKey, TItem) Class/Advisable­Keyed­Collection(TKey, TItem) Methods

AdvisableKeyedCollection<TKey, TItem> Methods

The AdvisableKeyedCollection<TKey, TItem> generic type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds an item to the ICollection<T>.
(Inherited from AdvisableCollection<T>.)
Public methodAddRange
Adds the elements of the specified collection to the end of the AdvisableCollection<T>.
(Inherited from AdvisableCollection<T>.)
Public methodClear
Removes all items from the ICollection<T>.
(Inherited from AdvisableCollection<T>.)
Protected methodClearItems
Removes all elements from the underlying collection.
(Overrides AdvisableCollection<T>.ClearItems().)
Public methodContains(T)
Determines whether the ICollection<T> contains a specific value.
(Inherited from AdvisableCollection<T>.)
Public methodContains(TKey)
Determines whether the collection contains an element with the specified key.
Public methodCopyTo
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
(Inherited from AdvisableCollection<T>.)
Protected methodExecuteWithAdvices<TResult, TAction>
Executes an action wrapped by all custom advices added to the current object.
(Inherited from DynamicallyAdvisableObject.)
Protected methodGetAdviceEnumerator (Inherited from AdvisableCollection<T>.)
Protected methodGetCount
Gets the number of elements in the underlying collection.
(Inherited from AdvisableCollection<T>.)
Public methodGetEnumerator
Returns an enumerator that iterates through the AdvisableCollection<T>.
(Inherited from AdvisableCollection<T>.)
Protected methodGetItem
Gets the element at the specified index of the underlying collection.
(Inherited from AdvisableCollection<T>.)
Protected methodGetKeyForItem
Extracts the key from the specified element.
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
(Overrides AdvisableCollection<T>.GetObjectData(SerializationInfo, StreamingContext).)
Public methodGetRange
Creates a shallow copy of a range of elements in the source AdvisableCollection<T>.
(Inherited from AdvisableCollection<T>.)
Public methodIndexOf
Determines the index of a specific item in the IList<T>.
(Inherited from AdvisableCollection<T>.)
Protected methodIndexOfItem
Searches for the specified object and returns the zero-based index of the first occurrence within the entire underlying collection.
(Overrides AdvisableCollection<T>.IndexOfItem(T).)
Protected methodInitializeAdvices
Initializes the list of dynamic advices.
(Inherited from DynamicallyAdvisableObject.)
Public methodInsert
Inserts an item to the IList<T> at the specified index.
(Inherited from AdvisableCollection<T>.)
Protected methodInsertItem
Inserts an element into the underlying collection at the specified index.
(Overrides AdvisableCollection<T>.InsertItem(Int32, T).)
Protected methodInsertItems
Inserts elements into the underlying collection at the specified index.
(Overrides AdvisableCollection<T>.InsertItems(Int32, T[]).)
Public methodInsertRange
Inserts the elements of a collection into the AdvisableCollection<T> at the specified index.
(Inherited from AdvisableCollection<T>.)
Public methodMove
Moved the element at the specified index to another index.
(Inherited from AdvisableCollection<T>.)
Protected methodMoveItem
Moves the element at the specified index to another index in the underlying collection.
(Overrides AdvisableCollection<T>.MoveItem(T, Int32, Int32).)
Public methodOnDeserialization
Runs when the entire object graph has been deserialized.
(Inherited from AdvisableCollection<T>.)
Protected methodRaiseEvents
Raised the events that have been buffered.
(Inherited from AdvisableCollection<T>.)
Public methodRemove
Removes the first occurrence of a specific object from the ICollection<T>.
(Inherited from AdvisableCollection<T>.)
Public methodRemoveAt
Removes the IList<T> item at the specified index.
(Inherited from AdvisableCollection<T>.)
Protected methodRemoveItem
Removes the element at the specified index of the underlying collection.
(Overrides AdvisableCollection<T>.RemoveItem(Int32).)
Protected methodRemoveItems
Removes the specified number of elements starting at the specified index of the underlying collection.
(Overrides AdvisableCollection<T>.RemoveItems(Int32, Int32).)
Public methodRemoveRange
Removes a range of elements from the AdvisableCollection<T>.
(Inherited from AdvisableCollection<T>.)
Protected methodSetItem
Replaces the element at the specified index of the underlying collection.
(Overrides AdvisableCollection<T>.SetItem(Int32, T).)
Public methodToArray
Creates an array from the current AdvisableCollection<T>.
(Inherited from AdvisableCollection<T>.)
Public methodTryGetValue
Tries to get the element with the specified key.
See Also