方法的参数前加ref代表的是传的参数的地址,值类型前加ref的作用相当于把这个值类型当成引用类型在用,那引用类型作为参数有一种情况也需要加ref,不然得到的值会有差. 不加ref: class Program { static void Main(string[] args) { List<string> list = new List<string> { "a","ab","aaa","bc"}; T…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.IO; using System.Net.Sockets; using System.Threading; namespace ConsoleApplication1 { class Program { static void Main(string…
http://zhidao.baidu.com/link?url=BvXRdoE0OjGh46rlodbyM3wirORSGGcnYGq0xYEtcoIMTkLnXd4Hl3iMLbKNb2npRdIRNLJYeLNKumjbm1F8uq 专有名词前的定冠词是要遵循一定规则的.1. 由普通名词组成的专有名词一般要加the,比如:the United States; (the USA)the People' Republic of China;(the PRC)2. 词首如果有相当于冠词一类的限定…