Update to 1.1.0 #5
1 changed files with 3 additions and 1 deletions
|
@ -134,7 +134,7 @@ You can manually add it to your class and its also available on some corelib typ
|
||||||
There is also an attribute you can use to make Bofa attempt to generate the interface at compile time.
|
There is also an attribute you can use to make Bofa attempt to generate the interface at compile time.
|
||||||
```cs
|
```cs
|
||||||
[BofaSerialize(Strict = false)] //false by default. If set to true it will fail when it cant find/parse a field
|
[BofaSerialize(Strict = false)] //false by default. If set to true it will fail when it cant find/parse a field
|
||||||
class Serialization
|
class Example
|
||||||
{
|
{
|
||||||
//It attempts to parse all public fields
|
//It attempts to parse all public fields
|
||||||
//[BofaInclue(Name = "FieldName")]
|
//[BofaInclue(Name = "FieldName")]
|
||||||
|
@ -147,6 +147,8 @@ class Serialization
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`Bofa.Deserialize(Example, Dictionary<StringView, Bofa>)` can be used to directly map the result of a parse to a field.
|
||||||
|
|
||||||
## Potential improvements
|
## Potential improvements
|
||||||
- There is still alot of speed left on the table
|
- There is still alot of speed left on the table
|
||||||
- Reduce the amount of allocations
|
- Reduce the amount of allocations
|
||||||
|
|
Loading…
Add table
Reference in a new issue