Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TypeCache.TypeCollection

Represents a read-only collection of Type and implements an IList interface.
Read time 1 minuteLast updated 6 days ago

Definition

public struct TypeCache.TypeCollection : IList<Type>, ICollection<Type>, IEnumerable<Type>, IList, ICollection, IEnumerable

Remarks

Note: All IList methods which might alter the collection always throw NotSupportedException.

Properties

Property

Description

CountThe number of elements in TypeCache.TypeCollection.
IsFixedSizeWhether the TypeCache.TypeCollection is of a fixed size. This property is always set to true.
IsReadOnlyWhether the TypeCache.TypeCollection is read-only. This property is always set to true.
IsSynchronizedWhether the TypeCache.TypeCollection is synchronized. This property is always set to true.
this[]Gets the element at the specified index.

Methods

Method

Description

ContainsDetermines whether an element is in the TypeCache.TypeCollection.
CopyToCopies the collection to an array.
GetEnumeratorGets an enumerator that iterates through the TypeCache.TypeCollection.
IndexOfGets the first occurrence of an item in the TypeCache.TypeCollection.

Structs

Struct

Description

TypeCache.TypeCollection.EnumeratorEnumerates the elements of a TypeCache.TypeCollection.