ImmutableArray<T>.Add(T) 方法

定义

返回末尾添加了指定项的原始数组的副本。Returns a copy of the original array with the specified item added to the end.

public:
 System::Collections::Immutable::ImmutableArray<T> Add(T item);
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

要添加到数组末尾的项。The item to be added to the end of the array.

返回

ImmutableArray<T>

末尾添加了指定项的新数组。A new array with the specified item added to the end.

适用于