Remove an item from an array. A new array is created and no
error is raised if the item does't exists.
Namespace:
Devolutions.UtilsAssembly: Devolutions.Utils (in Devolutions.Utils.dll)
Syntax
| Visual Basic |
|---|
Public Shared Function Remove(Of T) ( _ array As T(), _ obj As T _ ) As T() |
| C# |
|---|
public static T[] Remove<T>( T[] array, T obj ) |
Parameters
- array
- Type: array<T>[]()[][]
The array
- obj
- Type: T
The item to remove
Type Parameters
- T
- Array type