?????????Nlog?????????????????????????

????????????app??????????????д?????????????????????xml??

???????<appSettings>????е?????????????????????????????????????????????????????????????????????????????Щ????????÷????????????????nlog???????????????????????
????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>
???????????????section?????????configSections ???????????籩???????ConfigurationSection ??
?????????????????ConfigurationManager???GetSection?????????????????????????????????????????????????????????????????? Web ??ó?????????? GetSection() ???????????????????ó?????????? ConfigurationManager.GetSection ??????----MSDN??
????var mySection = ConfigurationManager.GetSection("mySection");
??????????3?????????????????????System.Configuration.ConfigurationErrorsException: ???? mySection ?????y????????????: ????“ConfigSolution.ConfigSectionHandler”????“System.Configuration.IConfigurationSectionHandler”??С? ---> System.TypeLoadException: ????“ConfigSolution.ConfigSectionHandler”????“System.Configuration.IConfigurationSectionHandler”??С?
???????????ConfigSolution.ConfigSectionHandler????System.Configuration.IConfigurationSectionHandler??У???????????????????????????Щ????????Ctrl+T??£?SharpDevelop????????????????????
???????MSDN??£?IConfigurationSectionHandler.Create  ?????????????仰??IConfigurationSectionHandler.Create ?????????????y??????????????????????£?????ж???

???????????μ????xml???????????section return??????