static void WriteTradeRecordToXml(ref List <TradeRecord> tradeRecord) { File.WriteAllText(FileWritePath, Xml.XMLSerializer(typeof(List <TradeRecord>), tradeRecord)); Console.WriteLine("TradeRecord.xml created successfully."); }
static void ReadOrderFromXml(ref Order[] orderQueue) { orderQueue = Xml.Deserialize(typeof(Order[]), File.ReadAllText(FileReadPath)) as Order[]; Console.WriteLine("OrderQueue.xml loaded successfully."); }