Ejemplo n.º 1
0
 public Soyo.Proto.ProtoTestBase DeepCopy(Soyo.Proto.ProtoTestBase dst, Soyo.Proto.ProtoTestBase src)
 {
     dst.byteValue          = src.byteValue;
     dst.sbyteValue         = src.sbyteValue;
     dst.shortValue         = src.shortValue;
     dst.ushortValue        = src.ushortValue;
     dst.intValue           = src.intValue;
     dst.uintValue          = src.uintValue;
     dst.longValue          = src.longValue;
     dst.ulongValue         = src.ulongValue;
     dst.floatValue         = src.floatValue;
     dst.doubleValue        = src.doubleValue;
     dst.enumValue          = src.enumValue;
     dst.stringValue        = src.stringValue;
     dst.bufferValue        = src.bufferValue;
     dst.byteArrayValue     = ProtoSerializer.DeepCopy(dst.byteArrayValue, src.byteArrayValue);
     dst.byteNullValue      = src.byteNullValue;
     dst.sbyteNullValue     = src.sbyteNullValue;
     dst.shortNullValue     = src.shortNullValue;
     dst.ushortNullValue    = src.ushortNullValue;
     dst.intNullValue       = src.intNullValue;
     dst.uintNullValue      = src.uintNullValue;
     dst.longNullValue      = src.longNullValue;
     dst.ulongNullValue     = src.ulongNullValue;
     dst.floatNullValue     = src.floatNullValue;
     dst.doubleNullValue    = src.doubleNullValue;
     dst.bufferNullValue    = src.bufferNullValue;
     dst.boolListValue      = ProtoSerializer.DeepCopy(dst.boolListValue, src.boolListValue);
     dst.byteListValue      = ProtoSerializer.DeepCopy(dst.byteListValue, src.byteListValue);
     dst.sbyteListValue     = ProtoSerializer.DeepCopy(dst.sbyteListValue, src.sbyteListValue);
     dst.shortListValue     = ProtoSerializer.DeepCopy(dst.shortListValue, src.shortListValue);
     dst.ushortListValue    = ProtoSerializer.DeepCopy(dst.ushortListValue, src.ushortListValue);
     dst.intListValue       = ProtoSerializer.DeepCopy(dst.intListValue, src.intListValue);
     dst.uintListValue      = ProtoSerializer.DeepCopy(dst.uintListValue, src.uintListValue);
     dst.longListValue      = ProtoSerializer.DeepCopy(dst.longListValue, src.longListValue);
     dst.ulongListValue     = ProtoSerializer.DeepCopy(dst.ulongListValue, src.ulongListValue);
     dst.floatListValue     = ProtoSerializer.DeepCopy(dst.floatListValue, src.floatListValue);
     dst.doubleListValue    = ProtoSerializer.DeepCopy(dst.doubleListValue, src.doubleListValue);
     dst.stringListValue    = ProtoSerializer.DeepCopy(dst.stringListValue, src.stringListValue);
     dst.bufferListValue    = ProtoSerializer.DeepCopy(dst.bufferListValue, src.bufferListValue);
     dst.byteArrayListValue = ProtoSerializer.DeepCopy(dst.byteArrayListValue, src.byteArrayListValue);
     dst.boolValue          = src.boolValue;
     dst.boolNullValue      = src.boolNullValue;
     dst.uintUintDictionary = ProtoSerializer.DeepCopy(dst.uintUintDictionary, src.uintUintDictionary);
     return(dst);
 }
Ejemplo n.º 2
0
 public Soyo.Proto.ProtoTestClass DeepCopy(Soyo.Proto.ProtoTestClass dst, Soyo.Proto.ProtoTestClass src)
 {
     dst.id    = src.id;
     dst.items = ProtoSerializer.DeepCopy(dst.items, src.items);
     return(dst);
 }