Files
Ryan ad71f4ce96 [C#] Add support for IEnumerable<T> for Views' return types (#4486)
This is the implementation to resolve #4424 
# Description of Changes
* Add support for `IEnumerable<T>` as a valid C# View return type in
codegen, so view implementations can return query results without
forcing `ToList()`. The generator now detects `IEnumerable<T>`,
serializes it via the list serializer.
* Snapshots have been updated with a test to confirm that
`IEnumerable<T>` rather than checking it is unsupported (which we had
added when removing support during the transition away from `Query<T>`
usage.
* Refreshes docs/examples to reflect the new supported signature.

# API and ABI breaking changes
No breaking changes. This is additive support for an existing .NET
interface.

# Expected complexity level and risk
2 - Low

# Testing
- [X] Rebuilt CLI locally, ran regression tests, and `dotnet tests` in
C# module bindings.
- [X] Tested updated docs code snippets to ensure they resolve in an IDE
and publish.

---------

Signed-off-by: Ryan <r.ekhoff@clockworklabs.io>
2026-03-23 23:20:46 +00:00
..
2026-01-23 21:28:24 +00:00
2025-08-12 18:20:58 +00:00
2023-12-21 06:08:41 -06:00
2026-03-20 21:53:51 +00:00
2024-08-28 11:13:33 -07:00

SpacetimeDB C# SDK

Overview

This repository contains the C# and Unity client SDKs for SpacetimeDB. These SDKs contain all the tools you need to build native clients for SpacetimeDB modules using C#.

Documentation

The Unity SDK uses the same code as the C# SDK. You can find the documentation for the C# SDK in the C# SDK Reference. For a guided tutorial, see the C# SDK Quickstart.

There is also a comprehensive Unity tutorial/demo available:

Internal developer documentation

See DEVELOP.md.