1.前言 传递参数,不需要返回值,对懒人很舒服哟,缺点是不好定位数据 2.操作 using System; namespace ConsoleApp1.letVlaueGo { public class DoValue { public static void Main(string[] args) { //初始值 int a = 1; int b = 2; /* * main方法不允许使用this调用同级页面的方法,只有在方法中才可以 * */ DoValue d = new DoValue(