Parse method for the custom class C#
<p>We all know this thing </p>

<pre><code>bool.Parse(Session["foo"].ToString())
</code></pre>

<p>How do implement the same <strong>PARSE</strong> method for some custom class?</p>

<p>So if I have </p>

<pre><code>class MyClass
{

}
</code></pre>

<p>It would be possible to do like </p>

<pre><code>MyClass.Parse(Session["foo"])
</code></pre>
