Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LazyToArray()

TSource[] System.Linq.Enumerable.AppendPrependN< TSource >.LazyToArray ( )
inlineprivate

Definition at line 214 of file Enumerable.cs.

215 {
217 if (_prepended != null)
218 {
220 }
222 if (_appended != null)
223 {
225 }
226 TSource[] array = sparseArrayBuilder.ToArray();
227 int num = 0;
229 {
230 array[num++] = singleLinkedNode.Item;
231 }
232 num = array.Length - 1;
234 {
235 array[num--] = singleLinkedNode2.Item;
236 }
237 return array;
238 }
void AddRange(IEnumerable< KeyValuePair< TKey, TValue > > collection)
readonly IEnumerable< TSource > _source
Definition Enumerable.cs:12
readonly SingleLinkedNode< TSource > _prepended
readonly SingleLinkedNode< TSource > _appended

References System.Linq.Enumerable.AppendPrependN< TSource >._appendCount, System.Linq.Enumerable.AppendPrependN< TSource >._appended, System.Linq.Enumerable.AppendPrependN< TSource >._prependCount, System.Linq.Enumerable.AppendPrependN< TSource >._prepended, System.Linq.Enumerable.AppendPrependIterator< TSource >._source, System.Collections.Generic.Dictionary< TKey, TValue >.AddRange(), and System.array.

Referenced by System.Linq.Enumerable.AppendPrependN< TSource >.ToArray().