我目前有一个.NET自定义配置部分,如下所示:
<customSection name="My section" />
我想要的是将它写为textnode(我不确定这是否是正确的术语?),如下所示:
<customSection>
  <name>My Section</name>
</customSection>
我当前的customSection类看起来像这样:
public class CustomSection: ConfigurationSection {
  [ConfigurationProperty("name")]
  public String Name {
    get {
      return (String)this["name"];
    }
  }
}
我该怎么做才能使它成为一个textnode?