我想創建類使用ConfigurationSection和ConfigurationElementCollection從我的配置文件讀取,但我很難。使用ConfigurationSection從配置文件正確讀取的幫助
由於配置的一個例子:
<PaymentMethodSettings>
<PaymentMethods>
<PaymentMethod name="blah blah" code="1"/>
<PaymentMethod name="blah blah" code="42"/>
<PaymentMethod name="blah blah" code="43"/>
<Paymentmethod name="Base blah">
<SubPaymentMethod name="blah blah" code="18"/>
<SubPaymentMethod name="blah blah" code="28"/>
<SubPaymentMethod name="blah blah" code="38"/>
</Paymentmethod>
</PaymentMethods>
</PaymentMethodSettings>
你能給我你想要做什麼的提示?我的意思是,當我不知道背後的原因時,提供XMLReader似乎相當侮辱他 – websch01ar 2008-10-31 21:15:28