IImmutableList<T>.SetItem(Int32, T) 메서드

정의

목록에서 지정된 위치에 있는 요소를 지정된 요소로 바꿉니다.

public:
 System::Collections::Immutable::IImmutableList<T> ^ SetItem(int index, T value);
public System.Collections.Immutable.IImmutableList<T> SetItem (int index, T value);
abstract member SetItem : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
Public Function SetItem (index As Integer, value As T) As IImmutableList(Of T)

매개 변수

index
Int32

바꿀 요소의 목록 내 위치입니다.

value
T

이전 요소와 바꿀 요소입니다.

반환

새 요소가 포함된 새 목록입니다. 이는 지정된 위치의 요소가 새 요소와 같은 경우에도 마찬가지입니다.

적용 대상