Read() public méthode

public Read ( TProtocol iprot ) : void
iprot Thrift.Protocol.TProtocol
Résultat void
 public void Read(TProtocol iprot)
 {
     TField field;
     iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 0:
       if (field.Type == TType.List) {
     {
       Success = new List<BlockLocation>();
       TList _list12 = iprot.ReadListBegin();
       for( int _i13 = 0; _i13 < _list12.Count; ++_i13)
       {
         BlockLocation _elem14 = new BlockLocation();
         _elem14 = new BlockLocation();
         _elem14.Read(iprot);
         Success.Add(_elem14);
       }
       iprot.ReadListEnd();
     }
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     Ouch = new ThriftIOException();
     Ouch.Read(iprot);
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }