In C# how to handle an invalid argument type exception before it occurs?
<p>In C# how to handle an invalid argument type exception before it occurs</p>

<pre><code> static class calc
 {
    public static double subtract(double num1, double num2)
    {
        // I want to handle arguments exception here so whenever a nethod is called I can handle the exception

        return num1 - num2;
    }
  }
</code></pre>

<p>I want to handle exception if the user use wrong arguments' type.</p>
