如何在C#中将所有值(属性)写入csv格式化字符串?例如:
class Person(string firstName, string lastName, int_age); Person person = new Person("Kevin","Kline",33);
现在我想要一个字符串"Kevin; Kline; 33"
换句话说,我想将对象序列化为CSV
.net c#
.net ×1
c# ×1