title: Timer Class In Console Application C#
body: <pre><code>public class PacketPoller
  {
      private Timer m_timer;
  
      public void Start()
      {
          m_timer = new Timer(OnTick(null), null, 0, 1);
          m_timer.InitializeLifetimeService();
      }
  
      public Action&lt;Object&gt; OnTick() { }
  }
  </code></pre>
  
  <p>This is my code, however, the timer seems to require a <code>static</code>method, rather than an object-oriented method. What can I do about it? I want to user to be able to create a new Timer and then change it's OnTick to set the method to call. How can I do that?</p>