We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21b1d42 commit 9260c70Copy full SHA for 9260c70
crates/bindings-csharp/BSATN.Codegen/Type.cs
@@ -1,6 +1,13 @@
1
namespace SpacetimeDB.Codegen;
2
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.
11
12
using System.Collections.Immutable;
13
using Microsoft.CodeAnalysis;
0 commit comments