public CCellSerial DeepCopy() { var tmp317 = new CCellSerial(); if ((K != null) && __isset.k) { tmp317.K = this.K.DeepCopy(); } tmp317.__isset.k = this.__isset.k; if (__isset.ts) { tmp317.Ts = this.Ts; } tmp317.__isset.ts = this.__isset.ts; if ((V != null) && __isset.v) { tmp317.V = this.V.DeepCopy(); } tmp317.__isset.v = this.__isset.v; return(tmp317); }
public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) { iprot.IncrementRecursionDepth(); try { TField field; await iprot.ReadStructBeginAsync(cancellationToken); while (true) { field = await iprot.ReadFieldBeginAsync(cancellationToken); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.List) { { TList _list331 = await iprot.ReadListBeginAsync(cancellationToken); Cells = new List <CCell>(_list331.Count); for (int _i332 = 0; _i332 < _list331.Count; ++_i332) { CCell _elem333; _elem333 = new CCell(); await _elem333.ReadAsync(iprot, cancellationToken); Cells.Add(_elem333); } await iprot.ReadListEndAsync(cancellationToken); } } else { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; case 2: if (field.Type == TType.List) { { TList _list334 = await iprot.ReadListBeginAsync(cancellationToken); Serial_cells = new List <CCellSerial>(_list334.Count); for (int _i335 = 0; _i335 < _list334.Count; ++_i335) { CCellSerial _elem336; _elem336 = new CCellSerial(); await _elem336.ReadAsync(iprot, cancellationToken); Serial_cells.Add(_elem336); } await iprot.ReadListEndAsync(cancellationToken); } } else { await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); } break; default: await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); break; } await iprot.ReadFieldEndAsync(cancellationToken); } await iprot.ReadStructEndAsync(cancellationToken); } finally { iprot.DecrementRecursionDepth(); } }