TypeCache.FieldInfoCollection
Represents a read-only collection of FieldInfo and implements an IList interface.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEditor
- Assembly: UnityEditor
- Implements: IList<FieldInfo>, ICollection<FieldInfo>, IEnumerable<FieldInfo>, IList, ICollection, IEnumerable
public struct TypeCache.FieldInfoCollection : IList<FieldInfo>, ICollection<FieldInfo>, IEnumerable<FieldInfo>, IList, ICollection, IEnumerable
Remarks
Note: The collection is immutable for the duration of Unity domain lifecycle. All IList methods that might alter the collection always throw NotSupportedException.
Properties
Property | Description |
|---|---|
| Count | The number of elements in TypeCache.FieldInfoCollection. |
| IsFixedSize | Whether the TypeCache.FieldInfoCollection is of a fixed size. This property is always set to true. |
| IsReadOnly | Whether the TypeCache.FieldInfoCollection is read-only. This property is always set to true. |
| IsSynchronized | Whether the TypeCache.FieldInfoCollection is synchronized. This property is always set to true. |
| this[] | Gets the element at the specified index. |
Methods
Method | Description |
|---|---|
| Contains | Determines whether an element is in the TypeCache.FieldInfoCollection. |
| CopyTo | Copies the collection to an array. |
| GetEnumerator | Gets an enumerator that iterates through a TypeCache.FieldInfoCollection. |
| IndexOf | Gets the first occurrence of an item in the TypeCache.FieldInfoCollection. |
Structs
Struct | Description |
|---|---|
| TypeCache.FieldInfoCollection.Enumerator | Enumerates the elements of a TypeCache.FieldInfoCollection. |