摘要: public static T GetValue(string Key) { T result = default(T);//这个default是先取泛型的默认值 result = (T)Convert.ChangeType(_config[Key], typeof(T));//然后在这里进行强转 retur... 阅读全文
posted @ 2019-06-28 17:24 健忘就忘吧 阅读(346) 评论(0) 推荐(0) 编辑