## IEnumerable::LINQ_First() method


Returns the first element of a sequence.

```cpp
T System::Collections::Generic::IEnumerable<T>::LINQ_First()
```


### ReturnValue

First element in the sequence.

## See Also

* Class [IEnumerable](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
## IEnumerable::LINQ_First(const Func\<T, bool\>\&) method


Returns the first element of a sequence that satisfy the specified condition.

```cpp
T System::Collections::Generic::IEnumerable<T>::LINQ_First(const Func<T, bool> &predicate)
```


| Parameter | Type | Description |
| --- | --- | --- |
| predicate | const Func\<T, bool\>\& | A function to test each element for a condition. |

### ReturnValue

First element in the sequence that satisfy the specified condition.

## See Also

* Class [Func](../../../system/func/)
* Class [IEnumerable](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
