コード例 #1
0
        /// <summary>
        /// Main method is the start point for console application
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to fellowship");
            Test program = new Test();

            TestClass.Test p = new TestClass.Test();
            p.Test1();
            double res = program.TestMethod();

            Console.WriteLine("Double value in main method " + res);
            Console.Wrilteline("Modifying in remote master branch");
            Console.Wrilteline("Modifying in local test branch");
            Console.Wrilteline("Modifying in remote Test branch");
            Console.Read();
        }
コード例 #2
0
ファイル: TestController.cs プロジェクト: CXIAOJ/WebApi
        // GET: Test
        public ActionResult Index()
        {
            Demo   demo     = new Demo();
            string username = User.Identity.Name;

            demo.djg();
            //Server.Transfer("~/Static/HP.html");
            //Response.Redirect("http://www.jianshu.com/p/9150ec3d1512");

            Test   test = new TestClass.Test();
            int    num1 = 1;
            float  num2;
            var    result1 = test.meth(ref num1); //ref 使用的变量必须赋初始值
            var    result2 = test.meth(out num2); //out 使用的变量可以不赋初始值
            Helper helper  = new Helper();

            return(View());
        }