2012年3月31日
摘要: View Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 10 namespace 实现登录_控制次数 11 {12 public partial class Form1 : Form13 {14 ... 阅读全文
posted @ 2012-03-31 17:04 The Soul 阅读(800) 评论(0) 推荐(0) 编辑
摘要: ref:传递引用,需要先初始化,必须先“有”,才能引用。应用场景,内部对外部的值进行改变。out:内部为外部赋值,不需要初始化,外部初始化也没用。应用场景,内部为外部的变量赋值。out一般用在函数有多个返回值的场所。View Code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace ConsoleApplication1 7 { 8 class Program 9 {10 // ref的用法 ... 阅读全文
posted @ 2012-03-31 12:29 The Soul 阅读(140) 评论(0) 推荐(0) 编辑