/// Take the data under (name) in this message, and copies it /// into (moveTo). /// <exception cref="FieldNotFound"/> public void copyField(string name, Message copyTo) { MessageField field = getField(name); copyTo.ensureFieldTableAllocated(); copyTo._fieldTable.Add(name, field.cloneFlat()); }
/// Take the data under (name) in this message, and moves it /// into (moveTo). /// <exception cref="FieldNotFound"/> public void moveField(string name, Message moveTo) { MessageField field = getField(name); _fieldTable.Remove(name); moveTo.ensureFieldTableAllocated(); moveTo._fieldTable.Add(name, field); }