[Quickfix-developers] .Net: Cloning QuickFix.Message
Brought to you by:
orenmnero
From: <reg...@ho...> - 2009-09-29 16:54:50
|
Hi, I'd like to clone FIX Messages. I have tried fromApp(Message msg) { Message newMsg = new Message(msg.ToString); } which seems to work fine. Unfortunately it is thenimpossible to cast newMsg in any FIX subtypes! e.g NewOrderSingle order = newMsg as NewOrderSingle; does not work anymore. (even though newMsg is indeed a NewOrderSingle 35=D) Any idea why? Thanks, Regis |