⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch2_01.cs

📁 《c#技术内幕代码》
💻 CS
字号:
using System;

class CH2_1
{
    CH2_1()
    {
       Console.WriteLine("CH2_1 Constructor Called");
    }
    
    ~CH2_1()
    {
       Console.WriteLine("CH2_1 Destructor Called");
    }
    void PrintAMessage( string msg )
    {
       Console.WriteLine("PrintAMessage: {0}", msg);
    }
    void Dispose()
    {
       Finalize();
       GC.SuppressFinalize(this);
    }
    
    static void Main()
    {
       Console.WriteLine("Top of function main");
       CH2_1 app = new CH2_1();
       app.PrintAMessage( "Hello from class");
       Console.WriteLine("Bottom of function main");
       app.Dispose();
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -