0
点赞
收藏
分享

微信扫一扫

使用别名

小龟老师 2022-11-02 阅读 191


using System;
using System.IO;
using System.Text;
using static System.Console;
using System.Threading;

//目的 消除两个同名类型的歧义和缩写名称
using CountDownTimer=System.Timers.Timer;

namespace 方法和参数
{
class Program
{
static void Main(string[] args)
{
CountDownTimer timer; //CountDownTimer 是别名 没有歧义
Timer threadTimer;
ReadKey();
}
}

}


举报

相关推荐

0 条评论