C#???Appconfig??????????
???????????? ???????[ 2015/5/15 13:29:46 ] ????????????????
???????????????????????mySection ?????????????
???????????????????????????Щ??????????????????????????????????MySectionHelper??????????
1 public class MySectionHelper
2 {
3 readonly XmlNode _section;
4 readonly XmlNode _coustomAssembly;
5 public MySectionHelper(XmlNode section)
6 {
7 _section=section;
8 _coustomAssembly= _section.SelectSingleNode("coustomAssembly");
9 }
10
11 public string CommandsAssembly{get{return _coustomAssembly.Attributes["CommandsAssembly"].Value;}}
12 }
?????????в??У???????????
????1 <configSections>
????2 <section name="mySection" type="ConfigSolution.ConfigSectionHandler??ConfigSolution"></section>
????3 </configSections>
????4 <mySection>
????5 <port CPort="40001" WPort="40002" SPort="50000"></port>
????6 <coustomAssembly CommandsAssembly="HX.Components.Command.Collection" CommandMessagesAssembly="HX.Components.CommandMessage.Collection"></coustomAssembly>
????7 </mySection>
???????н????
??????????????ɡ????????????????????и???????????????
?????????д??????.Net ???????ó??????á??????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11