You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ListExtensions.cs 325 B

1234567891011121314
  1. using System;
  2. using System.Collections.Generic;
  3. namespace LLama.Extensions
  4. {
  5. internal static class ListExtensions
  6. {
  7. public static void AddRangeSpan<T>(this List<T> list, ReadOnlySpan<T> span)
  8. {
  9. for (var i = 0; i < span.Length; i++)
  10. list.Add(span[i]);
  11. }
  12. }
  13. }