Class ArrayExtensions
Inheritance
ArrayExtensions
Assembly: Glitch9.dll
Syntax
public static class ArrayExtensions
Methods
|
Edit this page
View Source
Declaration
public static T[] CopyWithExtras<T>(this T[] array, params T[] itemsToAdd)
Parameters
| Type |
Name |
Description |
| T[] |
array |
|
| T[] |
itemsToAdd |
|
Returns
Type Parameters
|
Edit this page
View Source
FilterOut<T>(T[], params T[])
Declaration
public static T[] FilterOut<T>(this T[] array, params T[] itemsToRemove)
Parameters
| Type |
Name |
Description |
| T[] |
array |
|
| T[] |
itemsToRemove |
|
Returns
Type Parameters
|
Edit this page
View Source
Replace<T>(T[], T, T)
Declaration
public static void Replace<T>(this T[] array, T oldItem, T newItem)
Parameters
| Type |
Name |
Description |
| T[] |
array |
|
| T |
oldItem |
|
| T |
newItem |
|
Type Parameters
|
Edit this page
View Source
ToArrayOrEmpty<T>(T)
Declaration
public static T[] ToArrayOrEmpty<T>(this T item) where T : class
Parameters
| Type |
Name |
Description |
| T |
item |
|
Returns
Type Parameters
|
Edit this page
View Source
ToArrayOrNull<T>(T)
Declaration
public static T[] ToArrayOrNull<T>(this T item) where T : class
Parameters
| Type |
Name |
Description |
| T |
item |
|
Returns
Type Parameters
|
Edit this page
View Source
TrimEnd<T>(T[], int)
Declaration
public static T[] TrimEnd<T>(this T[] array, int count)
Parameters
| Type |
Name |
Description |
| T[] |
array |
|
| int |
count |
|
Returns
Type Parameters
|
Edit this page
View Source
TrimStart<T>(T[], int)
Declaration
public static T[] TrimStart<T>(this T[] array, int count)
Parameters
| Type |
Name |
Description |
| T[] |
array |
|
| int |
count |
|
Returns
Type Parameters
|
Edit this page
View Source
Trim<T>(T[], int, int)
Declaration
public static T[] Trim<T>(this T[] array, int start, int end)
Parameters
| Type |
Name |
Description |
| T[] |
array |
|
| int |
start |
|
| int |
end |
|
Returns
Type Parameters