Passing a struct from application to class library
<p>I have a class library that contains an API function that will handle all the processing, My application has a struct and few methods that will be passed in to the API function. How can I pass a struct from my application to .dll?  </p>

<p>In my application:</p>

<pre><code>private void IFaceConn_Load(object sender, EventArgs e)
    {
        Interface.RegisterInterface(iface, ref cfg, ConnectFn, DisconnectFn);
    }
</code></pre>

<p>In my .dll:</p>

<pre><code>public void RegisterInterface(Enum iface, "struct goes here"  Func&lt;int&gt; connect, Func&lt;int&gt; disconnect)
    {

    }
</code></pre>
