示例#1
0
        private string Serialize()
        {
            var result = "";

            foreach (var(prop, attr) in GetGetProperties())
            {
                result += CsvCell.Serialize(prop.GetValue(Obj), _options) + CsvOptions.DELIMITER;
            }
            return(Finalize(result));
        }
示例#2
0
        private string SerializeHeader()
        {
            var result = "";

            foreach (var(prop, attr) in GetGetProperties())
            {
                result += CsvCell.Serialize(attr.HeaderName ?? prop.Name, _options) + CsvOptions.DELIMITER;
            }
            return(Finalize(result));
        }