摘要:
1.out参数 在一个方法中,返回多个相同类型的值的时候,可以考虑返回一个数组,但是如果返回多个不同类型的值的时候,返回数组就不行,那么这个时候可以考虑用out参数。 out参数侧重于在一个方法中可以返回多个不同类型的值。 using System; using System.Collections 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Collections; using System 阅读全文
摘要:
1.在方法前面加[] using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Collections; u 阅读全文
摘要:
反射(Reflection)可以在运行时获 得.NET中每一个类型(包括类、结构、委托、接口和枚举等)的成员,包括方法、属性、事件,以及构造函数等。 反射用到的命名空间: System.Reflection System.Type System.Reflection.Assembly using S 阅读全文
摘要:
控制器里的内容 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace mvc.Controllers.home { pu 阅读全文
摘要:
1.抽象类和抽象方法 using System; namespace sqlcon { //抽象方法 abstract class testabstract { public abstract void a();//没有方法参数和内容主体,只有一个方法名和参数列表 } class overridet 阅读全文