TypeCache.MethodCollection
Represents a read-only collection of MethodInfo and implements an IList interface.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
- Implements: IList<MethodInfo>, ICollection<MethodInfo>, IEnumerable<MethodInfo>, IList, ICollection, IEnumerable
public struct TypeCache.MethodCollection : IList<MethodInfo>, ICollection<MethodInfo>, IEnumerable<MethodInfo>, IList, ICollection, IEnumerable
Remarks
Note: All IList methods which might alter the collection always throw NotSupportedException.
Properties
Property | Description |
|---|---|
| Count | The number of elements in TypeCache.MethodCollection. |
| IsFixedSize | Whether the TypeCache.MethodCollection is of a fixed size. This property is always set to true. |
| IsReadOnly | Whether the TypeCache.MethodCollection is read-only. This property is always set to true. |
| IsSynchronized | Whether the TypeCache.MethodCollection 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.MethodCollection. |
| CopyTo | Copies the collection to an array. |
| GetEnumerator | Gets an enumerator that iterates through a TypeCache.MethodCollection. |
| IndexOf | Gets the first occurrence of an item in the TypeCache.MethodCollection. |
Structs
Struct | Description |
|---|---|
| TypeCache.MethodCollection.Enumerator | Enumerates the elements of a MethodCollection. |