-
Notifications
You must be signed in to change notification settings - Fork 6
CSharp Language Support Quickstart
Rick Hightower edited this page Jan 28, 2026
·
1 revision
cd /path/to/my-csharp-project
doc-serve startdoc-serve index /path/to/my-csharp-project/src --include-codeThe system automatically detects .cs and .csx files and parses them using AST-aware chunking.
# Search for a specific method
doc-serve query "GetUserById method"
# Filter to C# results only
doc-serve query "authentication" --language csharpdoc-serve status
# → Indexed: 1,234 chunks from 56 files
# → Languages: python (20), csharp (15), typescript (21)For a C# file like:
/// <summary>
/// Manages user authentication and session handling.
/// </summary>
public class AuthService
{
/// <summary>
/// Authenticates a user by email and password.
/// </summary>
/// <param name="email">User's email address</param>
/// <returns>Authentication result with session token</returns>
public async Task<AuthResult> LoginAsync(string email, string password)
{
// ...
}
}Doc-serve extracts:
-
Symbol name:
LoginAsync -
Symbol kind:
method_declaration -
Parameters:
string email, string password -
Return type:
Task<AuthResult> - Docstring: "Authenticates a user by email and password."
- Line numbers: start/end line of the method
| Construct | Extracted As |
|---|---|
| Classes | class_declaration |
| Methods | method_declaration |
| Constructors | constructor_declaration |
| Interfaces | interface_declaration |
| Properties | property_declaration |
| Enums | enum_declaration |
| Structs | struct_declaration |
| Records | record_declaration |
| Namespaces | namespace_declaration |
-
.csfiles are detected and loaded during indexing -
.csxfiles are also detected and loaded - C# code is chunked at class/method boundaries (not arbitrary line splits)
- Symbol metadata (name, kind, parameters, return type) is present in query results
- XML doc comments (
///) are extracted as docstring metadata -
--language csharpfilter returns only C# results - C# files with syntax errors fall back to text-based chunking (not skipped)
- Design-Architecture-Overview
- Design-Query-Architecture
- Design-Storage-Architecture
- Design-Class-Diagrams
- GraphRAG-Guide
- Agent-Skill-Hybrid-Search-Guide
- Agent-Skill-Graph-Search-Guide
- Agent-Skill-Vector-Search-Guide
- Agent-Skill-BM25-Search-Guide
Search
Server
Setup
- Pluggable-Providers-Spec
- GraphRAG-Integration-Spec
- Agent-Brain-Plugin-Spec
- Multi-Instance-Architecture-Spec