<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
    <div id="smartTemplate4-template">Wouldn't<br>
      <pre>#if __MonoCS__</pre>
      do what you want?<br>
       </div>
    <br>
    <div id="smartTemplate4-quoteHeader">Mono <<a>edward.harvey.mono@clevertrove.com</a>> wrote on 2014-12-14 at 18:44 +0100:</div>
    <blockquote
cite="mid:BN3PR0801MB1154AE8AE2D40EABF41B80C8FA6E0@BN3PR0801MB1154.namprd08.prod.outlook.com"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">From: Alexander Köplinger [<a class="moz-txt-link-freetext" href="mailto:alex.koeplinger@outlook.com">mailto:alex.koeplinger@outlook.com</a>]

You can find out if you run on Mono by checking if Type.GetType
("Mono.Runtime") != null.
</pre>
      </blockquote>
      <pre wrap="">
That's helpful, but doesn't quite solve it, because compilation will fail on windows ...

I'm looking for something like this...

#ifdef MONO
            Mono.Security.X509.X509StoreManager.CurrentUser.TrustedRoot.Import(junkRootCert);
            try
            {
#endif
                DoStuff();
#ifdef MONO
            }
            finally
            {
                Mono.Security.X509.X509StoreManager.CurrentUser.TrustedRoot.Remove(junkRootCert);
            }
#endif
_______________________________________________
Mono-devel-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/mono-devel-list">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>