Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. System.Collections.Generic
  3. CollectionExtensions
  4. AddRange<T>(List<T>, ReadOnlySpan<T>)
  • CollectionExtensions
    • AddRange<T>(List<T>, ReadOnlySpan<T>)
    • AsReadOnly<T>(IList<T>)
    • AsReadOnly<TKey, TValue>(IDictionary<TKey, TValue>)
    • CopyTo<T>(List<T>, Span<T>)
    • GetDefaultAssets(IEnumerable<RuntimeAssetGroup>)
    • GetDefaultGroup(IEnumerable<RuntimeAssetGroup>)
    • GetDefaultRuntimeFileAssets(IEnumerable<RuntimeAssetGroup>)
    • GetRuntimeAssets(IEnumerable<RuntimeAssetGroup>, String)
    • GetRuntimeFileAssets(IEnumerable<RuntimeAssetGroup>, String)
    • GetRuntimeGroup(IEnumerable<RuntimeAssetGroup>, String)
    • GetValueOrDefault<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>, TKey)
    • GetValueOrDefault<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>, TKey, TValue)
    • InsertRange<T>(List<T>, Int32, ReadOnlySpan<T>)
    • Remove<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
    • TryAdd<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
net9.0
namespace System.Collections.Generic
{
    public static class CollectionExtensions
    {
        public static void AddRange<T>(this List<T>! list, params ReadOnlySpan<T> source);
    }
}
Design Reviews
  • dotnet/runtime#1530 2 years ago (Approved)
.NET 8.09.0
Information specific to net9.0
Assembly

System.Collections , Version=9.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Referencing

The API is automatically referenced.

Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

03/18/2025
An error has occurred. This application may no longer respond until reloaded. Reload 🗙