System::Collections::Generic::IKVCollection class

IKVCollection class

Interface of container containing keys or values of the dictionary-like container. 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 IKVCollection : public System::Collections::Generic::IList<T>
ParameterDescription
TKeyValuePair type.

Methods

MethodDescription
Add(const T&) overrideAdds item to container.
Clear() overrideDeletes all elements from container.
Contains(const T&) const overrideChecks if item is present in container.
virtual get_Count() constGets number of elements in container.
get_IsReadOnly() const overrideChecks if container is read only.
virtual GetEnumerator()RTTI information.
virtual idx_get(int) constGetter function.
idx_set(int, T) overrideSetter function.
IndexOf(const T&) const overrideGets index of item in container.
Insert(int, const T&) overrideInserts item at specified position.
Remove(const T&) overrideRemoves item from container.
RemoveAt(int) overrideRemoves item at specified position.

See Also