Class ArrayUtility
Assembly: UnityEditor.dll
Syntax
public static class ArrayUtility
Methods
|
Improve this Doc
View Source
Add<T>(ref T[], T)
Declaration
public static void Add<T>(ref T[] array, T item)
Parameters
Type |
Name |
Description |
T[] |
array |
|
T |
item |
|
Type Parameters
|
Improve this Doc
View Source
AddRange<T>(ref T[], T[])
Declaration
public static void AddRange<T>(ref T[] array, T[] items)
Parameters
Type |
Name |
Description |
T[] |
array |
|
T[] |
items |
|
Type Parameters
|
Improve this Doc
View Source
ArrayEquals<T>(T[], T[])
Declaration
public static bool ArrayEquals<T>(T[] lhs, T[] rhs)
Parameters
Type |
Name |
Description |
T[] |
lhs |
|
T[] |
rhs |
|
Returns
Type Parameters
|
Improve this Doc
View Source
ArrayReferenceEquals<T>(T[], T[])
Declaration
public static bool ArrayReferenceEquals<T>(T[] lhs, T[] rhs)
Parameters
Type |
Name |
Description |
T[] |
lhs |
|
T[] |
rhs |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Clear<T>(ref T[])
Declaration
public static void Clear<T>(ref T[] array)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Type Parameters
|
Improve this Doc
View Source
Contains<T>(T[], T)
Declaration
public static bool Contains<T>(T[] array, T item)
Parameters
Type |
Name |
Description |
T[] |
array |
|
T |
item |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Find<T>(T[], Predicate<T>)
Declaration
public static T Find<T>(T[] array, Predicate<T> match)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Predicate<T> |
match |
|
Returns
Type Parameters
|
Improve this Doc
View Source
FindAll<T>(T[], Predicate<T>)
Declaration
public static List<T> FindAll<T>(T[] array, Predicate<T> match)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Predicate<T> |
match |
|
Returns
Type Parameters
|
Improve this Doc
View Source
FindIndex<T>(T[], Predicate<T>)
Declaration
public static int FindIndex<T>(T[] array, Predicate<T> match)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Predicate<T> |
match |
|
Returns
Type Parameters
|
Improve this Doc
View Source
IndexOf<T>(T[], T)
Declaration
public static int IndexOf<T>(T[] array, T value)
Parameters
Type |
Name |
Description |
T[] |
array |
|
T |
value |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Insert<T>(ref T[], Int32, T)
Declaration
public static void Insert<T>(ref T[] array, int index, T item)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Int32 |
index |
|
T |
item |
|
Type Parameters
|
Improve this Doc
View Source
LastIndexOf<T>(T[], T)
Declaration
public static int LastIndexOf<T>(T[] array, T value)
Parameters
Type |
Name |
Description |
T[] |
array |
|
T |
value |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Remove<T>(ref T[], T)
Declaration
public static void Remove<T>(ref T[] array, T item)
Parameters
Type |
Name |
Description |
T[] |
array |
|
T |
item |
|
Type Parameters
|
Improve this Doc
View Source
RemoveAt<T>(ref T[], Int32)
Declaration
public static void RemoveAt<T>(ref T[] array, int index)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Int32 |
index |
|
Type Parameters