摘要: 当前路径:StudentManage/frmEnroll.cs2 using System;3 using System.Collections.Generic;4 using System.ComponentModel;5 using System.Data;6 using System.Drawing;7 using System.Linq;8 using System.Text;9 using System.Windows.Forms;10 using System.Data.SqlClient;11 using BLL;12 ... 阅读全文
posted @ 2013-05-25 22:17 博斯芮网络科技 阅读(259) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 方法定义与调用{ #region 方法的定义与调用 class Program { public double MyMethod() { Console.WriteLine("this is MyMethod."); double i = 10.234; //这... 阅读全文
posted @ 2013-05-25 20:08 博斯芮网络科技 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 2013-05-25ref(C# 参考) ref 关键字使参数按引用传递。其效果是,当控制权传递回调用方法时,在方法中对参数所做的任何更改都将反映在该变量中。若要使用 ref 参数,则方法定义和调用方法都必须显式使用 ref 关键字。例如:class RefExample { static void Method(ref int i) { i = 44; } static void Main() { int val = 0; Method(ref val); // val is n... 阅读全文
posted @ 2013-05-25 16:22 博斯芮网络科技 阅读(195) 评论(0) 推荐(0) 编辑