PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Hash­Set(T) Class/Advisable­Hash­Set(T) Methods/Advisable­Hash­Set(T).​Copy­To Method/Advisable­Hash­Set(T).​Copy­To Method (T[], Int32, Int32)

AdvisableHashSet<T>.CopyTo Method (T[], Int32, Int32)

Copies the specified number of elements of an AdvisableHashSet<T> object to an array, starting at the specified array index.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.6.0 (6.1.6.0)
Syntax
C#
public void CopyTo(
	T[] array,
	int arrayIndex,
	int count
)

Parameters

array
Type: T[]
The one-dimensional array that is the destination of the elements copied from the AdvisableHashSet<T> object. The array must have zero-based indexing.
arrayIndex
Type: System.Int32
The zero-based index in array at which copying begins.
count
Type: System.Int32
The number of elements to copy to array.
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is null.
ArgumentOutOfRangeException

arrayIndex is less than 0.

-or-

count is less than 0.

ArgumentException

arrayIndex is greater than the length of the destination array.

-or-

count is greater than the available space from the arrayIndex to the end of the destination array.

See Also