> For the complete documentation index, see [llms.txt](https://docs.zongsoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zongsoft.com/framework/core/collections.md).

# Zongsoft.Collections

Zongsoft.Collections 命名空间的职责和主要类型。

`Zongsoft.Collections` 提供集合增强、层级集合、参数集合、同步集合和常用集合扩展，是很多框架内部对象树和配置树的基础。

## 主要职责

* 提供分类、层级、参数、队列、字典等集合类型。
* 提供集合事件、集合工具和枚举扩展。
* 支撑逻辑路径、命名集合、同步访问和只读包装等常见集合场景。

## 类型

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref">页面</th></tr></thead><tbody><tr><td><strong>Category</strong></td><td>分类树、排序分类集合、本地化标题和描述。</td><td><a href="/framework/core/collections/category.md">分层类</a></td></tr><tr><td><strong>Hierarchical</strong></td><td>层级节点、节点集合、路径查找和层级表达式。</td><td><a href="/framework/core/collections/hierarchical.md">层次化</a></td></tr><tr><td><strong>Parameters</strong></td><td>字符串键、类型键、链式构建和 JSON 序列化。</td><td><a href="/framework/core/collections/parameters.md">参数集</a></td></tr><tr><td><strong>同步集合</strong></td><td>线程安全列表和字典包装。</td><td><a href="/framework/core/collections/synchronized.md">同步集合</a></td></tr><tr><td><strong>集合扩展</strong></td><td>枚举、集合、字典、键值对、哈希集和列表工具。</td><td><a href="/framework/core/collections/extensions.md">集合扩展</a></td></tr></tbody></table>

## 相关资源

* [Collections 源码目录](https://github.com/Zongsoft/framework/tree/main/Zongsoft.Core/src/Collections)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.zongsoft.com/framework/core/collections.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
