xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
linq_from.cpp
Shows how to use
xtd::linq::from
method.
#include <xtd/xtd>
auto
main() ->
int
{
auto
items = array {
"One"
,
"Two"
,
"Three"
,
"Four"
,
"Five"
};
const
auto
& enumerable = from(items);
auto
enumerator = enumerable.get_enumerator();
while
(enumerator.
move_next
())
console::write_line(enumerator.
current
());
}
// This code produces the following output :
//
// One
// Two
// Three
// Four
// Five
xtd::collections::generic::enumerator::current
const type_t & current() const override
Gets the element in the collection at the current position of the enumerator.
Definition
enumerator.hpp:63
xtd::collections::generic::enumerator::move_next
bool move_next() override
Advances the enumerator to the next element of the collection.
Definition
enumerator.hpp:72
Generated on
for xtd by
Gammasoft
. All rights reserved.