using System;using System.Collections;using System.Configuration;public class ReaderConfiguration{ ////// 读取web.config中自定义参数值 /// ///String public String ReadMySettings() { IDictionary mySettings = (IDictionary)ConfigurationSettings.GetConfig("mySetting"); string section1 = (string)sampleTable["section1"]; string section2 = (string)sampleTable["section2"]; string section3 = (string)sampleTable["section3"]; string section4 = (string)sampleTable["section4"]; return section1 + "," + section2 + "," + section3 + "," + section4 ; }}