[This is preliminary documentation and is subject to change.]

Compresses an array by removing all null values.

Namespace: org.critterai
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static T[] Compress<T>(
	T[] items
)
Public Shared Function Compress(Of T) ( _
	items As T() _
) As T()
public:
generic<typename T>
static array<T>^ Compress(
	array<T>^ items
)

Parameters

items
array<T>[]()[][]
The array.

Type Parameters

T
The type of the array.

Return Value

A reference to original array if it contained no nulls, or a new array with all nulls removed.

Remarks

Only valid for use with arrays of reference types.

No guarentees are made concerning the order of the items in the returned array.

See Also