<PackageReference Include="NETStandard.Library" Version="2.0.2" />

System.Runtime.CompilerServices.ReadOnlyCollectionBuilder<T>

namespace System.Runtime.CompilerServices { public sealed class ReadOnlyCollectionBuilder<T> : ICollection<T>, IEnumerable<T>, IEnumerable, IList<T>, ICollection, IList { public int Capacity { get; set; } public int Count { get; } public T this[int index] { get; set; } object IList.this[int index] { get; set; } public ReadOnlyCollectionBuilder(); public ReadOnlyCollectionBuilder(IEnumerable<T> collection); public ReadOnlyCollectionBuilder(int capacity); public void Add(T item); public void Clear(); public bool Contains(T item); public void CopyTo(T[] array, int arrayIndex); public IEnumerator<T> GetEnumerator(); public int IndexOf(T item); public void Insert(int index, T item); public bool Remove(T item); public void RemoveAt(int index); public void Reverse(); public void Reverse(int index, int count); public T[] ToArray(); public ReadOnlyCollection<T> ToReadOnlyCollection(); } }