---
title: "System::Collections::Generic::IEnumerable::LINQ_SequenceEqual method"
url: "https://reference.aspose.com/pdf/cpp/system.collections.generic/ienumerable/linq_sequenceequal/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Collections::Generic::IEnumerable::LINQ_SequenceEqual method. Compares two sequences in C++."
---

## IEnumerable::LINQ_SequenceEqual(SharedPtr\<IEnumerable\<T\>\>) method


Compares two sequences.

```cpp
bool System::Collections::Generic::IEnumerable<T>::LINQ_SequenceEqual(SharedPtr<IEnumerable<T>> second)
```


| Parameter | Type | Description |
| --- | --- | --- |
| second | SharedPtr\<IEnumerable\<T\>\> | The sequence to compare with. |

### ReturnValue

true if both sequences are equal by length and content, false otherwise.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IEnumerable](../)
* Class [IEnumerable](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
## IEnumerable::LINQ_SequenceEqual(SharedPtr\<IEnumerable\<T\>\>, const SharedPtr\<IEqualityComparer\<T\>\>\&) method


Compares two sequences.

```cpp
bool System::Collections::Generic::IEnumerable<T>::LINQ_SequenceEqual(SharedPtr<IEnumerable<T>> second, const SharedPtr<IEqualityComparer<T>> &comparer)
```


| Parameter | Type | Description |
| --- | --- | --- |
| second | SharedPtr\<IEnumerable\<T\>\> | The sequence to compare with. |
| comparer | const SharedPtr\<IEqualityComparer\<T\>\>\& | The equality comparer to compare by. |

### ReturnValue

true if both sequences are equal by length and content, false otherwise.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IEnumerable](../)
* Class [IEqualityComparer](../../iequalitycomparer/)
* Class [IEnumerable](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
