ImmutableArrayExtensions::First<T> Method (ImmutableArray<T>::Builder^)
Returns the first element in the collection.
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: TThe first item in the list.
Type Parameters
- T
The type of items in the array.
| Exception | Condition |
|---|---|
| InvalidOperationException | If the array is empty. |
Show: