When I was trying to figure out the constraint syntax (is there any documentation that I missed?), I ran into the following:
class test
{
public static T Func<System.IConvertible : T>(T v) { return v; }
}
When you try to compile this, the compiler exits without any error
messages.
BTW, for those who are interested, the correct syntax is:
class test
{
public static T Func<T>(T v) where T : System.IConvertible { return v;
}
}
Regards,
Jeroen
