是否可以从Thread.CurrentThread.CurrentCulture获取CSV分隔符? (。净)

StackOverflow https://stackoverflow.com/questions/413623

  •  03-07-2019
  •  | 
  •  

在小数分隔符为a的语言中,(逗号)CSV(逗号分隔值文件格式)分隔符为a; (分号)。我知道在Windows控制面板中哪里可以找到此配置,但我不知道如何在.NET应用程序中以progamatically方式找到它。

我猜Thread.CurrentThread.CurrentCulture有这些信息,但我找不到它。

有帮助吗?

解决方案

System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator

这是我知道的唯一方式。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top