protected override void DeserializeBody(ITypeReader typeReader) { TestList = typeReader.ReadListOfInt(); TestBool = typeReader.ReadBool(); TestInt = typeReader.ReadInt(); TestFloat = typeReader.ReadFloat(); }
public static float?ReadNullableFloat(this ITypeReader typeReader) { var notIsNull = typeReader.ReadBool(); if (notIsNull) { return(typeReader.ReadFloat()); } return(null); }