Skip to content

Commit 9260c70

Browse files
committed
Add header comment
1 parent 21b1d42 commit 9260c70

File tree

1 file changed

+8
-1
lines changed
  • crates/bindings-csharp/BSATN.Codegen

1 file changed

+8
-1
lines changed

crates/bindings-csharp/BSATN.Codegen/Type.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
namespace SpacetimeDB.Codegen;
22

3-
///
3+
// Generate code to implement serialization to the BSATN format (https://spacetimedb.com/docs/bsatn).
4+
// C# doesn't support static methods in interfaces, so instead we declare a zero-sized `struct` type that implements
5+
// the serialization interface (IReadWrite) for us.
6+
//
7+
// See BSATN.Runtime for the support code referenced by code generation,
8+
// and see Codegen.Tests/fixtures/*/snapshots for examples of generated code.
9+
// Also, if you set <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> in a csproj,
10+
// you can find the generated code in obj/Debug/*/generated/SpacetimeDB.BSATN.Codegen.
411

512
using System.Collections.Immutable;
613
using Microsoft.CodeAnalysis;

0 commit comments

Comments
 (0)