摘要:
static void Main(string[] args) { var stu1 = new Student() { Name = "张三", Age = 18, Sallry = 9000 }; var stu2 = new Student() { Name = "李四", Age = 15, 阅读全文
摘要:
效果 使用工具有VS2015、mariadb-10.3.7-winx64.msi、Google Chrome Controllers: using MVC.Models; using System; using System.Collections.Generic; using System.Dat 阅读全文
摘要:
反射可以在运行时获取类的信息(方法、字段、父类信息等等)。可以动态创建对象。动态调用对象 Type 每一个类都对应一个Type可以通过下面三种方式获得: Type type1 = OBJ.GetType(); Type type2 = typeof(OBJ); Type type3 = Type.G 阅读全文
摘要:
通过两种方法: TaskFactory/ParallelOptions class Program { static void Main(string[] args) { int num = 10; ControlTaskNum(num); UseParallelOptions(num); } // 阅读全文