Can .NET load and parse a properties file equivalent to Java Properties class?

前端 未结 13 1675
死守一世寂寞
死守一世寂寞 2020-12-01 01:19

Is there an easy way in C# to read a properties file that has each property on a separate line followed by an equals sign and the value, such as the following:



        
13条回答
  •  情歌与酒
    2020-12-01 01:43

    C# generally uses xml-based config files rather than the *.ini-style file like you said, so there's nothing built-in to handle this. However, google returns a number of promising results.

提交回复
热议问题