示例#1
0
文件: Message.cs 项目: ModeenF/muscle
        /// 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());
        }
示例#2
0
文件: Message.cs 项目: ModeenF/muscle
        /// 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);
        }
示例#3
0
 /// 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);
 }
示例#4
0
 /// 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());
 }