Udostępnij za pośrednictwem


LinkedElementCollection<T>.ReplaceAt(Int32, T) Method

Definition

Replaces a role player at specified index with the given one.

public:
 void ReplaceAt(int index, T item);
public void ReplaceAt (int index, T item);
member this.ReplaceAt : int * 'T -> unit
Public Sub ReplaceAt (index As Integer, item As T)

Parameters

index
Int32

Index inside collection bounds.

item
T

A new role player to be placed at the given index.

Applies to