コード例 #1
0
 protected override void DeserializeBody(ITypeReader typeReader)
 {
     TestList  = typeReader.ReadListOfInt();
     TestBool  = typeReader.ReadBool();
     TestInt   = typeReader.ReadInt();
     TestFloat = typeReader.ReadFloat();
 }
コード例 #2
0
        public static float?ReadNullableFloat(this ITypeReader typeReader)
        {
            var notIsNull = typeReader.ReadBool();

            if (notIsNull)
            {
                return(typeReader.ReadFloat());
            }

            return(null);
        }