AdvisableCollection<T>.SetItem Method |
Replaces the element at the specified index of the underlying collection.
Namespace: PostSharp.Patterns.CollectionsAssembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)

C#
protected virtual void SetItem( int index, T item )
Parameters
- index
- Type: System.Int32
The zero-based index of the element to replace. - item
- Type: T
The new value for the element at the specified index. The value can be null for reference types.

![]() |
---|
This method does not cause the advices to be executed. It should be invoked only from inside the scope of the ExecuteWithAdvices<TResult, TAction>(ObjectAccessLevel, TAction) method. |
