ImmutableArray<T>.Add(T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回原始數位的複本,並將指定的專案新增至結尾。
public:
System::Collections::Immutable::ImmutableArray<T> Add(T item);
public System.Collections.Immutable.ImmutableArray<T> Add(T item);
member this.Add : 'T -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Add (item As T) As ImmutableArray(Of T)
參數
- item
- T
要加入到陣列末尾的項目。
傳回
一個新陣列,並在末尾加上指定的項目。