31 references to ImmutableArray
System.Collections.Immutable (31)
System\Collections\Immutable\ImmutableArray.cs (13)
40return new ImmutableArray<T>(array); 53return new ImmutableArray<T>(array); 67return new ImmutableArray<T>(array); 82return new ImmutableArray<T>(array); 99return new ImmutableArray<T>(array); 164return new ImmutableArray<T>((T[])array); 175return new ImmutableArray<T>(items.ToArray(count)); 179return new ImmutableArray<T>(items.ToArray()); 202return new ImmutableArray<T>(tmp); 233return new ImmutableArray<T>(array); 264return new ImmutableArray<T>(array); 294return new ImmutableArray<TResult>(array); 328return new ImmutableArray<TResult>(array);
System\Collections\Immutable\ImmutableArray_1.Builder.cs (3)
194return new ImmutableArray<T>(this.ToArray()); 213return new ImmutableArray<T>(temp); 237return new ImmutableArray<T>(result);
System\Collections\Immutable\ImmutableArray_1.cs (10)
336return new ImmutableArray<T>(tmp); 389return new ImmutableArray<T>(tmp); 470return new ImmutableArray<T>(tmp); 494return new ImmutableArray<T>(tmp); 563return new ImmutableArray<T>(tmp); 663return new ImmutableArray<T>(tmp); 853return new ImmutableArray<T>(tmp); 940return new ImmutableArray<T>(items); 1505return new ImmutableArray<T>(newArray); 1525return new ImmutableArray<T>(tmp);
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (4)
44public static readonly ImmutableArray<T> Empty = new ImmutableArray<T>(new T[0]); 341return new ImmutableArray<T>(items.array); 355return new ImmutableArray<TOther>((TOther[])(object)array!); 379return new ImmutableArray<TOther>((this.array as TOther[]));
System\Runtime.InteropServices\ImmutableCollectionsMarshal.cs (1)
33return new(array);