Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Collection(T) Class / Advisable­Collection(T) Methods / Advisable­Collection(T).​Get­Item Method

AdvisableCollection<T>.GetItem Method

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

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.5.0 (6.1.5.0)
Syntax
C#
protected T GetItem(
	int index
)

Parameters

index
Type: System.Int32
The zero-based index of the element.

Return Value

Type: T
The element value.
Remarks

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

See Also