ImmutableArrayExtensions::First<T> Method (ImmutableArray<T>::Builder^)

 

Returns the first element in the collection.

Namespace:   System.Linq
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
generic<typename T>
[ExtensionAttribute]
static T First(
	ImmutableArray<T>::Builder^ builder
)

Parameters

builder
Type: System.Collections.Immutable::ImmutableArray<T>::Builder^

The builder to retrieve an item from.

Return Value

Type: T

The first item in the list.

Type Parameters

T

The type of items in the array.

Exception Condition
InvalidOperationException

If the array is empty.

Return to top
Show: