zoukankan      html  css  js  c++  java
  • C#第二章学习的代码

    2._1_Csharp程序结构
    using System;
    
    //引用命名空间
    
    namespace _2._1_Csharp程序结构
    {
        class Program//Program类
        {
            static void Main(string[] args)//static静态 void 无返回值 Main函数 也是我们程序执行的起点
            {
                Console.WriteLine("Csharp结构");
                Console.ReadKey();
            }
        }
    }
    //命名空间或者项目名称
    2._2命名空间标识符关键字
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using @class = System.Console;
    
    namespace _2._2命名空间标识符关键字
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("这是一条 输出语句");
    
                @class.WriteLine("这是一条别名输出语句");
                Console.ReadKey();
            }
        }
    }
    2._3编程规范
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace _2._3编程规范
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("这是第一行");
                Console.WriteLine("这是第二行");
            }
        }
    }
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    
    namespace _2._4_本章总结及任务实施
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("这是第4节本章总结及任务实施");
           
    
    
                Console.ReadKey();
            }
        }
    }
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    
    namespace 一个解决方案下第二个项目
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("第二项目");
                Console.ReadKey();
            }
        }
    }
  • 相关阅读:
    INT 3 中断调试处理流程
    调试事件的处理结束
    [IDA] 自动下载符号
    06 内存断点
    05 软件断点
    C#2.0新增功能02 泛型
    C#2.0新增功能01 分部类与分部方法
    xBIM 实战04 在WinForm窗体中实现IFC模型的加载与浏览
    xBIM 实战03 使用WPF技术实现IFC模型的加载与浏览
    xBIM 实战02 在浏览器中加载IFC模型文件并设置特效
  • 原文地址:https://www.cnblogs.com/zqyo2000z/p/5338727.html
Copyright © 2011-2022 走看看