title: Move P/Invokes to NativeMethods class Because it is a P/Invoke method message
body: <p>Can someone suggest what do I have to do with this message?</p>
  
  <blockquote>
    <p>CA1060    Move P/Invokes to NativeMethods class   Because it is a P/Invoke
    method, 'UControl.InternetGetConnectedState(out int, int)' should be
    defined in a class named NativeMethods, SafeNativeMethods, or
    UnsafeNativeMethods.  Mega. UControl.xaml.cs  33</p>
  </blockquote>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>namespace Mega
  {
      /// &lt;summary&gt;
      /// Interaction logic for UserControl1.xaml
      /// &lt;/summary&gt;
      public partial class UControl 
      { 
          [DllImport("wininet.dll")]
          private extern static bool InternetGetConnectedState(out int description, int reservedValue);
  </code></pre>
  
  <p>THANK YOU!</p>