Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc authored Sep 10, 2024
1 parent dcfe341 commit 6c99ca3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,12 @@ public partial class UnionSampleFormatter
Union can be assembled in code via `DynamicUnionFormatter<T>`.

```csharp
var formatter = new DynamicUnionFormatter<IFooBarBaz>(new[]
{
// (ushort, Type)[]
var formatter = new DynamicUnionFormatter<IFooBarBaz>(
(0, typeof(Foo)),
(1, typeof(Bar)),
(2, typeof(Baz))
});
);

MemoryPackFormatterProvider.Register(formatter);
```
Expand Down

0 comments on commit 6c99ca3

Please sign in to comment.