I want to use System.Timers.Timer , but because this is a WinForm there’s already System.Windows.Forms.Timer. Instead of doing System.Timers.Timer timerOne = new System.Timers.Timer();, is there a way to do Timer timerOne = new Timer(); by forcing the use of System.Timers.Timer (or ignoring System.Windows.Forms.Timer)?
I want to use System.Timers.Timer , but because this is a WinForm there’s already
Share
Add a using Timer = System.Timers.Timer; to the top of your source file. Note that this alias is only going to work within the file in which it’s declared; you’ll have to add it to each file in which you need it.