32 public T
this[
int index] {
34 set =>
throw new NotSupportedException(
"List is readonly.");
47 public void Insert(
int index, T item) {
48 throw new NotSupportedException(
"List is readonly.");
52 throw new NotSupportedException(
"List is readonly.");
55 public void Add(T item) {
56 throw new NotSupportedException(
"List is readonly.");
60 throw new NotSupportedException(
"List is readonly.");
65 public void CopyTo(T[] array,
int arrayIndex) {
66 m_list.CopyTo(array, arrayIndex);
69 public bool Remove(T item) =>
throw new NotSupportedException(
"List is readonly.");
Enumerator(IList< T > list)
ReadOnlyList(IList< T > list)
void CopyTo(T[] array, int arrayIndex)
Enumerator GetEnumerator()
static ReadOnlyList< T > Empty
void Insert(int index, T item)
static ReadOnlyList< T > m_empty