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