5#include <system/action.h>
6#include <system/collections/ilist.h>
7#include <system/collections/list.h>
8#include <system/collections/object_model/collection.h>
9#include <system/details/pointer_collection_helpers.h>
10#include <system/exceptions.h>
11#include <system/object.h>
12#include <system/shared_ptr.h>
14namespace System {
namespace Net {
namespace Http {
namespace Headers {
30 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
32 RTTI_INFO_TEMPLATE_CLASS(
ThisType, ThisTypeBaseTypesInfo);
44 _validator = validator;
53 System::Details::CollectionHelpers::SetWeakPointer(0, _validator);
54 BaseType::SetTemplateWeakPtr(0);
65 if (_validator !=
nullptr)
75 virtual void SetItem(int32_t index, T item)
77 if (_validator !=
nullptr)
91 static void CheckNotNull(T item)
96 throw ArgumentNullException(u
"item");
102Action<T> ObjectCollection<T>::s_defaultValidator = CheckNotNull;
Base type for generic collection. Objects of this class should only be allocated using System::MakeOb...
Definition: collection.h:19
virtual void InsertItem(int index, const T &item)
Inserts item into specified position.
Definition: collection.h:291
virtual void SetItem(int index, const T &item)
Sets item at specified position.
Definition: collection.h:304
Definition: db_command.h:9
MulticastDelegate< void(Args...)> Action
Delegate type that references methods that have no return value.
Definition: action.h:40
std::enable_if<!IsSmartPtr< T >::value, SmartPtr< T > >::type MakeObject(Args &&... args)
Creates object on heap and returns shared pointer to it.
Definition: smart_ptr.h:1506