I was writing some code in C#, and I found myself writing:
return new MyClass(...
when I noticed that both the return
and the
10 with extern partial hacks
abstract partial class A
{
private protected virtual extern unsafe ref readonly delegate*<int> Test();
}
partial class B : A
{
private protected sealed override unsafe partial ref readonly delegate*<int> Test();
// 1 2 3 4 5 6 7 8 9 10
private protected sealed override extern unsafe partial ref readonly delegate*<int> Test();
}
public abstract class Base {
protected internal abstract ref readonly int MyMethod();
}
public class Sub : Base {
extern sealed protected internal override unsafe ref readonly int MyMethod();
}
Managed to get 9 into a method declaration. Not sure if it's possible to get more in a method declaration