CollectionExtensions Class
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.
Provides extension methods for generic collections.
public ref class CollectionExtensions abstract sealed
public static class CollectionExtensions
type CollectionExtensions = class
Public Module CollectionExtensions
- Inheritance
-
CollectionExtensions
Add |
Adds the elements of the specified span to the end of the List<T>. |
As |
Returns a read-only ReadOnlyCollection<T> wrapper for the specified list. |
As |
Returns a read-only ReadOnlyDictionary<TKey,TValue> wrapper for the current dictionary. |
Copy |
Copies the entire List<T> to a span. |
Get |
Tries to get the value associated with the specified |
Get |
Tries to get the value associated with the specified |
Insert |
Inserts the elements of a span into the List<T> at the specified index. |
Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) |
Tries to remove the value with the specified |
Try |
Tries to add the specified |
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: