What is the longest legal statement block you can make with only C# keywords?

后端 未结 8 1422
粉色の甜心
粉色の甜心 2020-12-28 16:39

I was writing some code in C#, and I found myself writing:

return new MyClass(...

when I noticed that both the return and the

8条回答
  •  情话喂你
    2020-12-28 17:37

    10 with extern partial hacks

    abstract partial class A
    {
        private protected virtual extern unsafe ref readonly delegate* Test();
    }
    
    partial class B : A
    {
        private protected sealed override unsafe partial ref readonly delegate* Test();
    
        // 1        2       3       4       5      6       7     8     9        10
        private protected sealed override extern unsafe partial ref readonly delegate* Test();
    }
    

提交回复
热议问题