title: Check if RunOnUiThread is necessary?
body: <p>I'm stuck in a little problem:
  I have written a communication class that fires <code>OnResponseData</code> when data arrives.
  Now i need to check if the caller is the Activity itself or the class.</p>
  
  <p>See this code:</p>
  
  <pre><code>private void OnResponseData(ushort ID, byte function, byte[] values)
  {
  #if (winm || win7) // windows mobile or phone 7
      if (this.m_Container.Form.InvokeRequired)
          {
              this.m_Container.Form.BeginInvoke(new ModbusTCP.Master.ResponseData(OnResponseData), new object[] { id, function, values });
              return;
          }
  #else
      if (??) // well this is the problem, what i need to check here?
      { 
          Action newAc;
          newAc = delegate { OnResponseData(ID, function, values); };
          this.m_Container.Form.RunOnUiThread(newAc);
          return;
      }
  #endif
  ...
  </code></pre>
  
  <p><code>this.m_Container.Form</code> is my <code>Activity</code>
  I basically need InvokeRequired for Android.</p>
  
  <p>Thanks so far.</p>