3#include <system/collections/list.h>
4#include <system/collections/ilist.h>
5#include <system/collections/read_only_collection.h>
6#include <system/span.h>
11namespace CollectionExtensions {
17 list->AddInitializer(source.get_Length(), source.data_ptr());
24 return System::MakeObject<ObjectModel::ReadOnlyCollection<T>>(list);
Interface of indexed container of elements. Objects of this class should only be allocated using Syst...
Definition: ilist.h:19
List forward declaration.
Definition: list.h:127
Forward to use within Span class.
Definition: span.h:404
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
void AddRange(const SharedPtr< List< T > > &list, const ReadOnlySpan< T > &source)
Adds all items from the source span to given list.
Definition: collection_extensions.h:15
SharedPtr< ObjectModel::ReadOnlyCollection< T > > AsReadOnly(const SharedPtr< IList< T > > &list)
Wraps given list with read-only collection.
Definition: collection_extensions.h:22
Definition: db_command.h:9