| ExtensionsRemoveNullT Method |
Removes all null elements from the array.
Namespace:
Cauldron
Assembly:
Cauldron (in Cauldron.dll) Version: 3.2.0.2
Syntax public static T[] RemoveNull<T>(
this T[] array
)
where T : class
<ExtensionAttribute>
Public Shared Function RemoveNull(Of T As Class) (
array As T()
) As T()
public:
[ExtensionAttribute]
generic<typename T>
where T : ref class
static array<T>^ RemoveNull(
array<T>^ array
)
Parameters
- array
- Type: T
The array
Type Parameters
- T
- The element type of the array
Return Value
Type:
TA new array with all non null elements
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also