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

정의

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

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

매개 변수

index
Int32

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

value
T

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

반환

바뀐 요소가 있는 새 목록입니다. 이는 바뀐 요소가 해당 위치의 이전 요소와 동일한 경우에도 마찬가지입니다.

적용 대상