http://simpleprogrammer.com/2013/07/08/how-religion-destroys-programmers/ discovered something about myself—I have an amazing gift to always make the very best technology choice. No really, it is quite amazing. When I look back at my development care…
引例: 先看这个源码,函数传递后由于传递的是副本所以真正的值并没有改变. 源码如下: using System; using System.Collections.Generic; using System.Text; namespace refout参数学习 { class Program { static void Main(string[] args) { ; IncAge(age); Console.WriteLine(age);//打印结果还是20 Console.ReadKey();…
昨天在写代码时候遇到了一个问题,百思不得其解,感觉颠覆了自己对C#基础知识的认知,因为具体的情境涉及公司代码不便放出,我在这里举个例子,先上整个测试所有的代码,然后一一讲解我的思考过程: using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { , Name…