C#基本用法
示例
using System;
using BasicStuff = System;
using Sayer = System.Console;
using static System.Console; //从C#6
class Program
{
public static void Main()
{
System.Console.WriteLine("Ignoring usings and specifying full type name");
Console.WriteLine("Thanks to the 'using System' directive");
BasicStuff.Console.WriteLine("Namespace aliasing");
Sayer.WriteLine("Type aliasing");
WriteLine("Thanks to the 'using static' directive (from C# 6)");
}
}
热门推荐
10 顾客简短祝福语大全集
11 中秋祝福语送朋友简短
12 妹妹生日祝福语简短唯美
13 新年过后奋斗祝福语简短
14 虎年台词祝福语大全简短
15 职场离职文案祝福语简短
16 孙女结婚姥姥祝福语简短
17 蛋糕祝老师祝福语简短
18 航空公司祝福语简短