8#define __XTD_CORE_INTERNAL__
11#undef __XTD_CORE_INTERNAL__
13#define __XTD_CORE_INTERNAL__
34#undef __XTD_CORE_INTERNAL__
36#define __XTD_CORE_INTERNAL__
38#undef __XTD_CORE_INTERNAL__
40#define __XTD_CORE_INTERNAL__
42#undef __XTD_CORE_INTERNAL__
44#define __XTD_CORE_INTERNAL__
46#undef __XTD_CORE_INTERNAL__
48#define __XTD_CORE_INTERNAL__
50#undef __XTD_CORE_INTERNAL__
53template<
class new_type_t,
class current_type_t>
54new_type_t* __convert_value__(current_type_t* value) {
55 return xtd::as<new_type_t>(value);
58template<
class result_t,
class source_t>
60 static thread_local auto result = __opaque_xtd_linq_enumerable_collection__<result_t> {};
61 result = __opaque_xtd_linq_enumerable_collection__<result_t> {};
62 for (
const auto& item : source)
63 result.items.push_back(
xtd::
as<result_t>(item));
Contains opaque_xtd_linq_enumerable_collection <type_t> struct.
Contains std::any type and std::bad_any_cast exception.
Contains xtd::any_object class.
Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Definition ienumerable.hpp:36
static const ienumerable< result_t > & cast(const ienumerable< source_t > &source) noexcept
Casts the elements of an xtd::collections::generic::ienumerable to the specified type.
Contains xtd::convert class.
Contains xtd::convert class.
Contains xtd::convert_string class.
type_t as(any_object &o)
Casts a type into another type.
Definition __as_any_object.hpp:59
Contains xtd::invalid_cast_exception exception.
Contains xtd::linq::enumerable <type_t> class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd fundamental types.