Share via


BorrowedList<TElement>.Resize(Int32) Method

Definition

Resizes the BorrowedList<TElement> to contain size elements. If size is less than the current number of elements, the elements at the end of the list are removed. If size is greater than the current number of elements, the new elements are set to their default value.

public void Resize(int size);
member this.Resize : int -> unit
Public Sub Resize (size As Integer)

Parameters

size
Int32

The new size of the BorrowedList<TElement>.

Remarks

The maximum allowed value of size is 1,073,741,824.

Applies to