[Quickfix-developers] RES: Fast message cloning, toString() setString()?
Brought to you by:
orenmnero
From: Thiago H. C. <thi...@it...> - 2010-10-04 19:34:53
|
Have you tried this one: void setString(string @string, bool validate, DataDictionary dataDictionary); Passing the same DataDictionary from source message may solve the field order problem you're having. Regards, Thiago -----Mensagem original----- De: Wilhelm Thomas [mailto:th...@cu...] Enviada em: segunda-feira, 4 de outubro de 2010 14:16 Para: qui...@li... Assunto: [Quickfix-developers] Fast message cloning, toString() setString()? Hello, I'm using c# I'm basically trying to clone super fast a message without having the need to create a new Message everytime but just feeding the new string via setString. Unfortunatly string msg = message.Tostring() doesn't seem to output the tag in the right order, so I can not do another_message.setstring(@msg) What is the fastest way to get the string out from a Message object so I can feed an empty Message object? Any other idea for a super fast cloning not involving the creation of too many objects? thanks for your help Wil |