Marshalling data for C#
<p>I have not many experience in such language as C# so I would be pleased if you guys could help me. I wrote this method in C++ using MPIR library:</p>

<pre><code>mpz_class SchnorrProtocol::getX(const mpz_class&amp; r) const
{
    mpz_class x;
    mpz_powm(x.get_mpz_t(), this-&gt;params_.getBeta().get_mpz_t(), r.get_mpz_t(), this-&gt;params_.getP().get_mpz_t());
    return x;
}
</code></pre>

<p>and now I want to import it to C#:</p>

<pre><code>  #region Filter &amp; P/Invoke
#if DEBUG
        private const string DLL = "schnorrd.DLL";
#else
       private const string DLL = "schnorr.DLL";
#endif

        [DllImport(DLL)]
  "method definition"
        ......  SchnorrProtocol::getX(......);
</code></pre>

<p>my problem, I don't know how to do it. Could u please help me?</p>
