次のような単純な構成セクションがあります
<configuration>
<configSections>
<section name="Test" type="System.Configuration.DictionarySectionHandler"/>
<section name="Test1" type="System.Configuration.DictionarySectionHandler"/>
</configSections>
<Test>
<add key="foo" value="1"/>
</Test>
<Test1>
<add key="bar" value="20"/>
</Test1>
</configuration>
そして、私はコードからアクセスしています
var blah = ConfigurationManager.GetSection("Test");
しかし、私は常にnullになります。私はすべてを試しましたが、何が起こっているのか理解できませんでした。誰かがこれで私を助けてくれますか?
ありがとう、