---
title: "System::Collections::Generic::IEnumerable::LINQ_Distinct method"
url: "https://reference.aspose.com/pdf/cpp/system.collections.generic/ienumerable/linq_distinct/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Collections::Generic::IEnumerable::LINQ_Distinct method. Returns distinct elements from a sequence by using the default equality comparer to compare values in C++."
---

## IEnumerable::LINQ_Distinct method


Returns distinct elements from a sequence by using the default equality comparer to compare values.

```cpp
SharedPtr<IEnumerable<T>> System::Collections::Generic::IEnumerable<T>::LINQ_Distinct()
```


### ReturnValue

An [System::Collections::Generic::IEnumerable](../) that contains distinct elements from the source sequence.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IEnumerable](../)
* Class [IEnumerable](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
