System::Collections::Generic::ICollection class
Contents
[
Hide
]ICollection class
Interface of collection of elements. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
template<typename T>class ICollection : public virtual System::Collections::Generic::IEnumerable<T>
Methods
Method | Description |
---|---|
virtual Add(const T&) | Adds element into collection. |
virtual Clear() | Deletes all elements from collection. |
virtual Contains(const T&) const | Checks if element is present in collection. |
virtual CopyTo(System::ArrayPtr<T>, int) | Copies all collection elements to existing array elements. |
virtual get_Count() const | Gets number of elements in collection. |
virtual get_IsReadOnly() const | Checks if collection is read only. |
get_SyncRoot() const | Gets the object the collection is being synchronized through. |
ICollection() | Default constructor. |
ICollection(const ICollection&) | Copy constructor. |
ICollection(ICollection&&) | Move constructor. |
operator=(ICollection&&) | Move assignment operator. |
operator=(const ICollection&) | Move assignment operator. |
virtual Remove(const T&) | Deletes element from collection. |
virtual ~ICollection() | Destructor. |
Typedefs
Typedef | Description |
---|---|
ThisType | Collection type name. |
ValueType | RTTI information. |
See Also
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.PDF for C++