3#include <system/object.h>
4#include <system/object_ext.h>
5#include <system/shared_ptr.h>
7#include <system/exceptions.h>
8#include <system/idisposable.h>
9#include <system/collections/ienumerator_ng.h>
11namespace System {
namespace Collections {
namespace Generic {
17namespace Collections {
41 if (m_enum->MoveNext())
43 m_current = m_enum->get_Current();
46 m_current = System::Default<System::SharedPtr<System::Object>>();
77 if (m_enum->MoveNext())
82 m_current = System::Default<System::SharedPtr<System::Object>>();
Interface of enumerator which can be used to iterate through some elements. Objects of this class sho...
Definition: ienumerator.h:63
Interface of enumerator which can be used to iterate through some elements. Objects of this class sho...
Definition: ienumerator_ng.h:18
Wrapper the creates non generic IEnumerator implementation over the generic Iterator IEnumeratorImplR...
Definition: ienumerator_impl.h:24
virtual bool MoveNext() override
Moves enumerator to the next element. If no element was referenced before, sets reference to the firs...
Definition: ienumerator_impl.h:39
virtual const SharedPtr< System::Object > & get_Current() const override
Gets current element.
Definition: ienumerator_impl.h:32
IEnumeratorImplRefType(System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< T > > > enumerator)
wrapper constructor
Definition: ienumerator_impl.h:27
Wrapper the creates non generic IEnumerator implementation over the generic Iterator IEnumeratorImplR...
Definition: ienumerator_impl.h:60
virtual const SharedPtr< System::Object > & get_Current() const override
Gets current element.
Definition: ienumerator_impl.h:68
IEnumeratorImplValueType(System::SharedPtr< System::Collections::Generic::IEnumerator< T > > enumerator)
wrapper constructor
Definition: ienumerator_impl.h:63
virtual bool MoveNext() override
Moves enumerator to the next element. If no element was referenced before, sets reference to the firs...
Definition: ienumerator_impl.h:75
static std::enable_if< std::is_enum< T >::value, System::SmartPtr< System::Object > >::type Box(const T &value)
Boxes value types for converting to Object. Implementation for enum types.
Definition: object_ext.h:198
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9