C# Riddle
Consider the following code:
test(typeof(bool));
static
void test( object t){
Console.WriteLine(t.GetType().FullName);
}
What would be printed?
Hint: It's not System.Boolean
Update: Omer van Kloeten pointed out that the original version worked, that is because I didn't write the example in VS.Net, or tested it.
Now it works (or doesn't work, depending how you look at it.)
Comments
Comment preview