title: Get it's "parent" in side System.Timers.Timer
body: <p>Well, the title is confusing because I don't know how to express it well, feel free to correct it.</p>
  <p>I have a class TaskTimer to access and modify some of it's property, but I don't know how to get it's parent in the elapsed timer event. I do this because whenever i stop a System.Timers.Timer it is still running for the last time. By doing this it will help preventing the timer from misfiring.</p>
  <pre><code>    public List&lt;TaskTimer&gt; _taskTimers; 
      public void CreateTask(int _taskID, int _invterval)
      {
          TaskTimer taskTimer = new TaskTimer();
          taskTimer.taskID = _taskID;
          taskTimer.Interval = _invterval;
          taskTimer.Elapsed += new ElapsedEventHandler(OnTweakTimedEvent_autoTask);
          _taskTimers.Add(taskTimer);
      }
      public class TaskTimer : System.Timers.Timer
      {
          private int taskID { get ; set ;}
      }
  </code></pre>
  <p>Here is a sample of Eslapsed timer event and what i want to do:</p>
  <pre><code>    string currentTaskID = &quot;something&quot;;
      private void OnTweakTimedEvent_autoTask(object sender, ElapsedEventArgs e)
      {
          if (currentTask == {tell this event to get it's taskID)
          {
              //to do here
          }
      }
  </code></pre>
  <p>I know this question sounds silly, any help is appreciated!</p>