CollectionExtensions.AddRange<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the elements of the specified span to the end of the List<T>.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static void AddRange(System::Collections::Generic::List<T> ^ list, ReadOnlySpan<T> source);
public static void AddRange<T> (this System.Collections.Generic.List<T> list, ReadOnlySpan<T> source);
public static void AddRange<T> (this System.Collections.Generic.List<T> list, scoped ReadOnlySpan<T> source);
static member AddRange : System.Collections.Generic.List<'T> * ReadOnlySpan<'T> -> unit
<Extension()>
Public Sub AddRange(Of T) (list As List(Of T), source As ReadOnlySpan(Of T))
Type Parameters
- T
The type of elements in the list.
Parameters
- list
- List<T>
The list to which the elements should be added.
- source
- ReadOnlySpan<T>
The span whose elements should be added to the end of the List<T>.
Exceptions
The list
is null
.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.