private bool WriteContentsRecord(PacketObject packet, FileFormatOptionImpl option, StreamWriter writer) { try { var items = new List <string>(); foreach (var order in option.ItemOrder) { items.Add(packet.GetElementText(order)); } /* 出力 */ writer.WriteLine(TextUtil.WriteCsvLine(items)); writer.Flush(); return(true); } catch { return(false); } }