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

📄 program.cs

📁 c#开发宝典 光盘内容。本光盘主要为书中的源程序
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Example3_6 {
    class Program {
        static void Main(string[] args) {
            Console.WriteLine("True || False is : {0}", MyBoolTrue() || MyBoolFalse());
            Console.WriteLine("False || True is : {0}", MyBoolFalse() || MyBoolTrue());
            Console.ReadLine();
        }

        //返回True的方法,同时输出“True returned!”
        static bool MyBoolTrue() {
            Console.WriteLine("True returned!");
            return true;
        }

        //返回False的方法,同时输出“False returned!”
        static bool MyBoolFalse() {
            Console.WriteLine("False returned!");
            return false;
        }
    }
}

⌨️ 快捷键说明

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