コード例 #1
0
        public override void Deserialize(IDataReader reader)
        {
            pageIndex = reader.ReadVarUhShort();
            totalPage = reader.ReadVarUhShort();
            var limit = (ushort)reader.ReadUShort();

            paddockList = new Types.PaddockInformationsForSell[limit];
            for (int i = 0; i < limit; i++)
            {
                paddockList[i] = new Types.PaddockInformationsForSell();
                paddockList[i].Deserialize(reader);
            }
        }
コード例 #2
0
 public override void Deserialize(IDataReader reader)
 {
     pageIndex = reader.ReadShort();
     if (pageIndex < 0)
         throw new Exception("Forbidden value on pageIndex = " + pageIndex + ", it doesn't respect the following condition : pageIndex < 0");
     totalPage = reader.ReadShort();
     if (totalPage < 0)
         throw new Exception("Forbidden value on totalPage = " + totalPage + ", it doesn't respect the following condition : totalPage < 0");
     var limit = reader.ReadUShort();
     paddockList = new Types.PaddockInformationsForSell[limit];
     for (int i = 0; i < limit; i++)
     {
          paddockList[i] = new Types.PaddockInformationsForSell();
          paddockList[i].Deserialize(reader);
     }
 }
コード例 #3
0
public void Deserialize(IDataReader reader)
{

pageIndex = reader.ReadVarUhShort();
            if (pageIndex < 0)
                throw new System.Exception("Forbidden value on pageIndex = " + pageIndex + ", it doesn't respect the following condition : pageIndex < 0");
            totalPage = reader.ReadVarUhShort();
            if (totalPage < 0)
                throw new System.Exception("Forbidden value on totalPage = " + totalPage + ", it doesn't respect the following condition : totalPage < 0");
            var limit = reader.ReadUShort();
            paddockList = new Types.PaddockInformationsForSell[limit];
            for (int i = 0; i < limit; i++)
            {
                 paddockList[i] = new Types.PaddockInformationsForSell();
                 paddockList[i].Deserialize(reader);
            }
            

}