Why my C# reflection code crashes?
<p>I'm just trying reflection :</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Reflection;


public class CTest {
    public string test;
}

public class MyClass
{
    public static void Main()
    {
        CTest cTest = new CTest();
     Type t=cTest.GetType();
     PropertyInfo p = t.GetProperty("test");
     cTest.test = "hello";
        //instruction below makes crash
     string test = (string)p.GetValue(cTest,null);

        Console.WriteLine(cTest.GetType().FullName);
     Console.ReadLine(); 
    }
}
</code></pre>
