How can I declare a static function within a class?
<p>I would like to code a method inside the following:</p>

<pre><code>namespace WebUx.Helpers.CSharp
{
    public class getExceptionMessage
    {

        &lt; Method here &gt;

        var exError = e.Message;
                    if ( e.InnerException != null ) {
                        exError += "&lt;br&gt;" + e.InnerException.Message;
                        if (e.InnerException.InnerException != null ) {
                            exError += "&lt;br&gt;" + e.InnerException.InnerException.Message;
                        }
                    }
    }
}
</code></pre>

<p>Can someone tell me how I should declare the class and method. I get mixed up over how best to declare and I think it should be static but not sure if there is a better way. Note that this method I want to have callable from many places in my code. I think I should probably return a string with the value exError.</p>
