We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents edb8b03 + 9b0e2db commit 39a9f6cCopy full SHA for 39a9f6c
1 file changed
src/MemoryPack.Generator/MemoryPackGenerator.Emitter.cs
@@ -941,9 +941,12 @@ string EmitUnionTemplate(IGeneratorContext context)
941
942
partial {{classOrInterfaceOrRecord}} {{TypeName}} : IMemoryPackFormatterRegister
943
{
944
+ static partial void StaticConstructor();
945
+
946
static {{Symbol.Name}}()
947
948
{{register}}
949
+ StaticConstructor();
950
}
951
952
[global::MemoryPack.Internal.Preserve]
0 commit comments