ImmutableList<T>.Insert(Int32, T) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定对象插入指定索引处的不可变列表中。
public:
System::Collections::Immutable::ImmutableList<T> ^ Insert(int index, T item);
public System.Collections.Immutable.ImmutableList<T> Insert(int index, T item);
member this.Insert : int * 'T -> System.Collections.Immutable.ImmutableList<'T>
Public Function Insert (index As Integer, item As T) As ImmutableList(Of T)
参数
- index
- Int32
要插入对象的从零开始的索引。
- item
- T
要插入的对象。
返回
插入对象后的新不可变列表。