Skip to content

Commit d7971d7

Browse files
authored
Update README.md
1 parent 6b8db33 commit d7971d7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public partial class Person3
213213
When serializing/deserializing, MemoryPack can invoke a before/after event using the `[MemoryPackOnSerializing]`, `[MemoryPackOnSerialized]`, `[MemoryPackOnDeserializing]`, `[MemoryPackOnDeserialized]` attributes. It can annotate both static and instance (non-static) methods, and public and private methods.
214214

215215
```csharp
216-
[MemoryPackable]
216+
[MemoryPackable]
217217
public partial class MethodCallSample
218218
{
219219
// method call order is static -> instance
@@ -563,10 +563,8 @@ public partial class DefaultValue
563563
}
564564
```
565565

566-
`[SuppressDefaultInitialization]` has following disadvantages:
566+
`[SuppressDefaultInitialization]` has following limitation:
567567
- Cannot be used with readonly, init-only, and required modifier.
568-
=- May not be the best performance due to increased conditional branching. (But it would be negligible.)
569-
570568

571569
The next [Serialization info](#serialization-info) section shows how to check for schema changes, e.g., by CI, to prevent accidents.
572570

0 commit comments

Comments
 (0)