public object Read(ref byte[] bytes, ref int index) { if ((index & 1) != 0) { index++; } var propertyValue = new TType[ArraySize]; for (var i = 0; i < ArraySize; i++) { propertyValue[i] = (TType)ElementType.Read(ref bytes, ref index); } return(propertyValue); }
public void ReadProperty(ref byte[] bytes, ref int index, object value) { Setter((TClass)value, (byte[])PropertyType.Read(ref bytes, ref index)); }