摘要: List lt = new List(); lt.Add("a"); lt.Add("b"); lt.Add("c"); var s= string.Join("," ,lt.Select(o =>"'"+o+"'").ToArray()); Conso... 阅读全文
posted @ 2016-11-10 18:52 甜菜波波 阅读(392) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Reflection; namespace RequestParameter1.Controllers { public class Search ... 阅读全文
posted @ 2016-11-10 14:04 甜菜波波 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 反射是一个程序集发现及运行的过程,通过反射可以得到*.exe或*.dll等程序集内部的信息。使用反射可以看到一个程序集内部的接口、类、方法、字段、属性、特性等等信息。在System.Reflection命名空间内包含多个反射常用的类,下面表格列出了常用的几个类。 一、System.Reflectio 阅读全文
posted @ 2016-11-10 14:00 甜菜波波 阅读(225) 评论(0) 推荐(0) 编辑