c# correct way to call GC.Collect : <p>I have an application that do complex processing and creates too many objects, I want to free up the memory after the processing is complete.</p>

<p>I'm currently calling GC.collect in my application in a try catch block, and </p>

<p>// this function in a static class</p>

<pre><code>public static void Collect()
{
    try
    {
        GC.Collect
    }
    catch(Exception)
    {
        //
    }
}
</code></pre>

<p>Is this the correct way to call the Garbage collector? should I call it directly?
what is best use practice?</p>
