is it possible to rewrite one of the projects of the solution to c++?
<p>My solution has 5 projects.
I need to "boost" speed of my program (HFT Sofware) and so I want to start with rewriting most "low-level" projects to C++ (to speed-up, avoid GC etc.)?</p>

<p>Is it possible? Is it easy?</p>

<p>First of all I want to rewrite "Commons" project. It contains for example such class:</p>

<pre><code>using System.Threading;

namespace Commons
{
public class Counter
{
    private int i = 0;

    public int Next()
    {
        return Interlocked.Increment(ref i);
    }

    public int Next(int count)
    {
        return Interlocked.Add(ref i, count);
    }

    public void Reset()
    {
        i = 0;
    }

}
}
</code></pre>

<p>In another project i'm using it like that:</p>

<pre><code>class GateTransactionsApi
{
    public Counter counter = new Counter();
</code></pre>

<p>I want to rewrite class above from project1 from c# to c++.</p>

<p>But I want to keep using this class from project2 from c# codebase.</p>
