class magic methods in asp.net c# like php
<p>im know a lot in php, but im newbie in asp.net.</p>

<p>In asp.net exists magic methods in classes like php?(__construct(), __isset() __get() __set() __destruct(), etc)
for example, how i can do this in asp.net c#:</p>

<pre><code>class foo
{
    public $name;

    public function __contruct($name){
        $this-&gt;name = $name;
    }

    public function getName(){
        return $name;
    }
}

$test = new Foo("test");
echo $test-&gt;getName(); //prints test
</code></pre>

<p>Thanks for help!</p>
