title: ThreadPool.RegisterWaitForSingleObject for Compact Framework?
body: <p>I must port a project to the compact framework. And can not convert to </p>
  
  <blockquote>
    <p>ThreadPool.RegisterWaitForSingleObject
    (WaitHandle, WaitOrTimerCallback,
    object, int, bool)</p>
  </blockquote>
  
  <p>What may be a alternative way for ThreadPool.RegisterWaitForSingleObject in c#</p>
  
  <pre><code>lock (this.RegLock)
  {
      if (!this.WaitFlag)
      {
          this.mre.Reset();
          if (this.handle != null)
          {
              this.handle.Unregister(null);
          }
        this.handle = ThreadPool.RegisterWaitForSingleObject(this.mre, this.WOTcb, null, this.Interval, true);
      }
      else
      {
          this.StartFlag = true;
          if (this.Interval &lt; this.timeout)
          {
              this.timeout = this.Interval;
          }
      }
  }
  </code></pre>