BinarySerializer icon indicating copy to clipboard operation
BinarySerializer copied to clipboard

feat: SerializeAs Support IValueConverter

Open zh3305 opened this issue 2 years ago • 1 comments

using

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

Refs: #199

zh3305 avatar Feb 17 '23 09:02 zh3305

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

zh3305 avatar Feb 17 '23 10:02 zh3305