Posted on
2007-12-28 16:19带你去月球
阅读(987)
评论(0)
编辑收藏举报
One simply testing for app.config file.
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { staticvoid Main(string[] args) { Console.WriteLine(System.Configuration.ConfigurationManager.AppSettings["username"]); Console.WriteLine(System.Configuration.ConfigurationManager.AppSettings["password"]); } } }