public static string Serialize(Security sec) { List<string> str = new List<string>(); str.Add(sec.Symbol); str.Add(sec.SecurityType); str.Add(sec.Exchange); if (sec.Multiplier != 1) str.Add(sec.Multiplier.ToString()); return string.Join(" ", str.ToArray()); }