TechTalk Genome v4.2

Set.ToArray Method (Type)

Copies the elements of the Set to a new Array of the specified type.

public Array ToArray(
   Type elementType
);

Parameters

elementType
The Type of the Array to create and copy elements to.

Return Value

An Array of the specified type containing copies of the elements of the Set.

Exceptions

Exception TypeCondition
ArgumentNullExceptionelementType is a null reference.
InvalidCastException The element type of the source Set cannot be casted automatically to the specified type.

Requirements

Namespace: TechTalk.Genome

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

Set Class | TechTalk.Genome Namespace | Set.ToArray Overload List