摘要:
源码下载遇到的问题:在WCF服务层的Iservice,我写了这样的一个方法:[OperationContract]List<string> GetStudentNameList();在客户端调用的时候发现调用GetStudentNameList()返回的却是 string[]解决如图: 阅读全文
posted @ 2013-04-24 22:45
pnljs
阅读(187)
评论(0)
推荐(0)
摘要:
C#代码View Code 1staticvoidGetConfigInfo()2{3//访问Test14//IDictionaryidTest1=(IDictionary)ConfigurationSettings.GetConfig("Test1");5IDictionaryidTest1=(IDictionary)System.Configuration.ConfigurationManager.GetSection("Test1");6stringstr=(string)idTest1["setting1"]+"__ 阅读全文
posted @ 2013-04-24 12:02
pnljs
阅读(443)
评论(0)
推荐(0)
摘要:
自己加了一个自定义的节点,加在<configSections></configSections>之间,查了资料才发现:如果配置文件中包含configSections元素,则configSections元素必须是configuration元素的第一个子元素。所以就把<configSections></configSections>放在最前面就不会报错了。 阅读全文
posted @ 2013-04-24 11:33
pnljs
阅读(3225)
评论(0)
推荐(0)
摘要:
string foodType = ConfigurationSettings.AppSettings["No1"];instance = (Builder)Assembly.Load("创建者模式").CreateInstance("创建者模式." + foodType);培植文件如下:<?xml version="1.0" encoding="utf-8" ?><configuration> <appSettings> <add key=" 阅读全文
posted @ 2013-04-24 10:17
pnljs
阅读(239)
评论(0)
推荐(0)

浙公网安备 33010602011771号