Thrift.Protocol.TProtocol.ReadDouble C# (CSharp) Method

ReadDouble() public abstract method

public abstract ReadDouble ( ) : double
return double
		public abstract double ReadDouble();
		public virtual string ReadString() {

Usage Example

Example #1
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Double) {
           Longitude = iprot.ReadDouble();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Double) {
           Latitude = iprot.ReadDouble();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
All Usage Examples Of Thrift.Protocol.TProtocol::ReadDouble