Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# 中是否直接支持 WriteProfileString?我不想使用 kernel32.dll 中的非托管函数。
不,据我所知,.NET 不再支持 INI 文件。
app.config在 .NET 世界中,INI 文件格式已被 XML 广泛取代,XML 是配置文件(例如.NET Framework 通过静态System.Configuration.ConfigurationManager类提供支持的文件)的新的事实标准。
app.config
System.Configuration.ConfigurationManager