示例#1
0
 /// <summary>
 /// Gets the internal array of a <see cref="List{T}"/>.
 /// <para>Warning: Internal array length >= List.Count. Use with cautious.</para>
 /// </summary>
 /// <typeparam name="T">The type of the elements.</typeparam>
 /// <param name="list">The respective list.</param>
 /// <returns>The internal array of the list.</returns>
 public static T[] GetInternalArray <T>(this List <T> list)
 {
     return(ArrayAccessor <T> .Getter(list));
 }
 public static T[] GetInternalArray <T>(this List <T> list) => ArrayAccessor <T> .Getter(list);