-1

System.Timers.Timer difference between Enabled = true and .Start()? What is the difference?

Ashkru
  • 1,495
  • 1
  • 17
  • 26
  • Note that while the marked duplicate pertains to a different `Timer` class, the answer is exactly the same, and could have been found yourself just by either a) searching Stack Overflow or b) reading the documentation. This question shows no evidence of you having done any research, nor is it a useful addition to the Stack Overflow site. – Peter Duniho Feb 26 '17 at 22:50
  • Just look at the source code: https://referencesource.microsoft.com/#System/services/timers/system/timers/Timer.cs,282 – Steve Feb 26 '17 at 22:56

1 Answers1

2

Read the docs

Setting Enabled to true is the same as calling Start, while setting Enabled to false is the same as calling Stop.

Nico
  • 12,493
  • 5
  • 42
  • 62