梦想不会逃跑,会逃跑的永远都是自己.|

和吾玩

园龄:1年10个月粉丝:0关注:0

初来乍到

开始尝试


点击查看代码
using System;

namespace MyConsoleApp
{
    class Program
    {
        static void Main(string region = null,
            string session = null,
            string package = null,
            string project = null,string[] args=null)
        {
            Console.WriteLine("来到了主方法");
            #region Main
            switch (region)
            {
                case "say_hello":
                    SayH();
                    break;
                case "what_the_cat_says":
                    Console.WriteLine(new Cat().Say());
                    break;
                case "run3":
                    Cat.Run3();
                    break;
            }
            #endregion
        }

        static void SayH(){
            #region say_hello
            Console.WriteLine($"Hello World 王欢欢!{new Cat().Say()}");
            #endregion

        }
    }
}


using System;

namespace MyConsoleApp
{
    class Program
    {
        static void Main(string region = null,
            string session = null,
            string package = null,
            string project = null,string[] args=null)
        {
            Console.WriteLine("来到了主方法");
            #region Main
            switch (region)
            {
                case "say_hello":
                    SayH();
                    break;
                case "what_the_cat_says":
                    Console.WriteLine(new Cat().Say());
                    break;
                case "run3":
                    Cat.Run3();
                    break;
            }
            #endregion
        }

        static void SayH(){
            #region say_hello
            Console.WriteLine($"Hello World 王欢欢!{new Cat().Say()}");
            #endregion

        }
    }
}

结束啦 :cry

本文作者:和吾玩

本文链接:https://www.cnblogs.com/imwhuan/p/17300344.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   和吾玩  阅读(17)  评论(1编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起