?? program.cs
字號:
?using System;
using System.Collections.Generic;
using System.Text;
namespace 精礦方法類型轉換
{
/************************
* 程序描述:使用靜態方法來進行類型轉換。這里是試驗
* Convert.ToBoolean()將字符串轉換成bool的類型轉換。
* 創 建 人:ncbcy@eiTarget
* 版 本 號:1.0.0
* 修改記錄:0
***********************/
class Program
{
static void Main(string[] args)
{
bool booltest;
booltest = Convert.ToBoolean("true");
booltest = !booltest;
Console.WriteLine(Convert.ToString(booltest));
Console.ReadLine();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -