Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: SerializeAs Support IValueConverter #200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zh3305
Copy link

@zh3305 zh3305 commented Feb 17, 2023

using

   [FieldOrder(0)]
    [SerializeAs(SerializedType.TerminatedString, StringTerminator = (char)0x20, ConverterType = typeof(HexStringToIntConvert))]
    public int DataAmount { get; set; }

Refs: #199

using
```
   [FieldOrder(0)]
    [SerializeAs(SerializedType.TerminatedString, StringTerminator = (char)0x20, ConverterType = typeof(HexStringToIntConvert))]
    public int DataAmount { get; set; }
```

Refs: jefffhaynes#199
@zh3305
Copy link
Author

zh3305 commented Feb 17, 2023

This is a simple implementation. But I think there should be a better way to implement it,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants