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.
1 parent dcfe341 commit 6c99ca3Copy full SHA for 6c99ca3
1 file changed
README.md
@@ -422,12 +422,12 @@ public partial class UnionSampleFormatter
422
Union can be assembled in code via `DynamicUnionFormatter<T>`.
423
424
```csharp
425
-var formatter = new DynamicUnionFormatter<IFooBarBaz>(new[]
426
-{
+// (ushort, Type)[]
+var formatter = new DynamicUnionFormatter<IFooBarBaz>(
427
(0, typeof(Foo)),
428
(1, typeof(Bar)),
429
(2, typeof(Baz))
430
-});
+);
431
432
MemoryPackFormatterProvider.Register(formatter);
433
```
0 commit comments