Friday, March 28, 2008

Longest Valid Code with Keywords only

What is the longest set of valid C# code that can be created using keywords only ??? my attempt gave me a 43 keywords with each keyword appearing only once and braces not included in count.

set
{
lock ( value = this as object)
{
throw null;
}
}
get
{
unsafe
{
try
{
do
{
switch ((int)(uint)(ulong)(long)(sbyte)(byte)(ushort)(short) (float)(double)unchecked(sizeof(char)))
{
default:
break;
}
for (; ; )
{ continue; }
} while (true);
}
catch
{}
finally
{}

if (false)
{ }
else

return checked(typeof(decimal)) is string;

}