diff --git a/src/xtd.core/include/xtd/array.hpp b/src/xtd.core/include/xtd/array.hpp index 003f68d05eb..09c64186a98 100644 --- a/src/xtd.core/include/xtd/array.hpp +++ b/src/xtd.core/include/xtd/array.hpp @@ -9,6 +9,7 @@ #include "collections/generic/enumerator.hpp" #include "collections/generic/icomparer.hpp" #include "collections/generic/ilist.hpp" +#include "collections/generic/extensions/enumerable.hpp" #include "abstract.hpp" #include "core_export.hpp" #include "int64.hpp" diff --git a/src/xtd.core/include/xtd/basic_array.hpp b/src/xtd.core/include/xtd/basic_array.hpp index 4ffe92457db..f20b3e7b491 100644 --- a/src/xtd.core/include/xtd/basic_array.hpp +++ b/src/xtd.core/include/xtd/basic_array.hpp @@ -24,7 +24,7 @@ namespace xtd { /// xtd.core /// @ingroup xtd_core system template::value, char, type_t>::type>> - class basic_array : public xtd::array_abstract_object, public xtd::collections::generic::ilist, public xtd::iequatable> { + class basic_array : public xtd::array_abstract_object, public xtd::collections::generic::extensions::enumerable, type_t>, public xtd::collections::generic::ilist, public xtd::iequatable> { class comparer { public: comparer(const xtd::collections::generic::icomparer* comparer) : comparer_(comparer) { } diff --git a/src/xtd.core/include/xtd/collections/generic/list.hpp b/src/xtd.core/include/xtd/collections/generic/list.hpp index b35a77d30d0..f84700a9bb4 100644 --- a/src/xtd.core/include/xtd/collections/generic/list.hpp +++ b/src/xtd.core/include/xtd/collections/generic/list.hpp @@ -2,6 +2,7 @@ /// @brief Contains xtd::collections::generic::list struct. /// @copyright Copyright (c) 2024 Gammasoft. All rights reserved. #pragma once +#include "extensions/enumerable.hpp" #include "helpers/allocator.hpp" #include "ilist.hpp" #include "../object_model/read_only_collection.hpp" @@ -68,7 +69,7 @@ namespace xtd { /// Finally, the xtd::collections::generic::list::clear method is used to remove all items from the list, and the xtd::collections::generic::list::capacity and xtd::collections::generic::list::count properties are displayed. /// @include generic_list2.cpp template::value, char, type_t>::type>> - class list : public xtd::object, public xtd::collections::generic::ilist, public xtd::iequatable> { + class list : public xtd::object, public xtd::collections::generic::extensions::enumerable, type_t>, public xtd::collections::generic::ilist, public xtd::iequatable> { public: /// @name Public Aliases