PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Collection<T>Get­Item
Open sandboxFocus

AdvisableCollection<T>.GetItem Method

GetItem(Int32)

Gets the element at the specified index of the underlying collection.

Declaration
protected T GetItem(int index)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the element.

Returns
Type Description
T

The element value.

Remarks

note

This method does not cause the advices to be executed. It should be invoked only from inside the scope of the ExecuteWithAdvices method.