# 十七、内置工具类

## AssemblyHelper 程序集工具类

### 获取启动项目引用的程序集列表

```csharp
var assemblies = AssemblyHelper.GetEntryReferencedAssemblies(prefixName:null);
```

获取解决方案所有程序集

```csharp
var assemblies = AssemblyHelper.GetApplicationAssembliesWithinNuget(prefixName:null);
```

## StringHelper 字符串工具类

### 将下划线命名方式转为大骆驼方式

```csharp
var str = StringHelper.ConvertUpperUnderlineNameToCamelCase("PERSON_ID")    // => PersonId
```

### 将大骆驼命名方式转换为下划线命名方式

```csharp
var str = StringHelper.ConvertCamelCaseToUpperUnderlineName("PersonId")    // => PERSON_ID
```


---

# Agent Instructions: 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:

```
GET https://monksoul.gitbook.io/hoa/neizhigongjulei.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
