System::Collections::Generic::SortedList::SortedList 构造函数

SortedList::SortedList() constructor

构造空列表。

System::Collections::Generic::SortedList<TKey, TValue>::SortedList()

另见

SortedList::SortedList(const map_t&) constructor

拷贝构造函数。

System::Collections::Generic::SortedList<TKey, TValue>::SortedList(const map_t &map)
参数类型描述
映射const map_t&要复制数据的 Map。

另见

SortedList::SortedList(const SharedPtr<IComparer<TKey>>&) constructor

构造空列表。

System::Collections::Generic::SortedList<TKey, TValue>::SortedList(const SharedPtr<IComparer<TKey>> &comparer)
参数类型描述
comparerconst SharedPtr<IComparer<TKey>>&Comparer 使用。

另见

SortedList::SortedList(const SharedPtr<IDictionary<TKey, TValue>>&) constructor

拷贝构造函数。

System::Collections::Generic::SortedList<TKey, TValue>::SortedList(const SharedPtr<IDictionary<TKey, TValue>> &src)
参数类型描述
srcconst SharedPtr<IDictionary<TKey, TValue>>&Dictionary 用于复制数据来源。

另见

SortedList::SortedList(int) constructor

构造空列表。

System::Collections::Generic::SortedList<TKey, TValue>::SortedList(int capacity)
参数类型描述
capacityint要保留的元素数量。

另见