using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace WebProjects.Controllers { public class HomeController : Controller { // // GET: /Home/ public ActionR
以下为本次实践代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace ConsoleTest { class Program { static void Main(string[] arg
这几天一直在复习C#基础知识,过程中也发现了自己以前理解不清楚和混淆的概念.现在给大家分享出来我的笔记: 一,.NET平台的重要组成部分都是有哪些 1)FCL (所谓的.NET框架类库) 这些类是微软事先定义好的. 例如当我们新创建一个windows窗体应用程序是,VS会帮我们自动生成下面的代码: using System; using System.Collections.Generic; using System.Text; 这些就是微软事先为程序员定义好的类库.程序员可以直接使用的. 2)
apply()方法定义 函数的apply()方法和call方法作用相同,区别在于接收的参数的方式不同.apply()方法接收两个参数,一个是对象,一个是参数数组. apply()作用 1.用于延长函数的作用域 示例: var color='red'; var o={color:'blue'}; function sayColor(){ console.log(this.color); } sayColor();//"red" sayColor.apply(o);//"blue