Replies: 2 comments 3 replies
-
Yes, and more. There are several different implementations of timer in .NET: and |
Beta Was this translation helpful? Give feedback.
-
There was a discussion about this in the pull request that initially checked in the timer. There is also some hints in the issue for adding the type to .NET Core (this is the broken issue number 10000 mentioned in the PR's description). The short version is yes, it is a historical legacy that was thought to be a temporary solution at the time. The long version: The type was not initially added to .NET Core as it is redundant with System.Threading.Timer, as @huoyaoyuan mentioned. It was added back in .NET Core 2.0 and .NET Standard 2.0 as part of the push for better backwards compatible when porting .NET Framework apps to .NET Core. The obvious place to put the |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotnet/runtime/blob/main/src/libraries/System.ComponentModel.TypeConverter/src/System/Timers/Timer.cs
Is the simple answer "historical legacy"?
Beta Was this translation helpful? Give feedback.
All reactions