I was writing some code in C#, and I found myself writing:
return new MyClass(...
when I noticed that both the return and the
For 6:
new protected internal unsafe virtual decimal Foo() {...}
Edit for 7:
new protected internal unsafe virtual extern decimal Foo();
If we allow brackets and braces...
(edited the "lock", "new object()", "as" and "string" were contributed by others; see comments)
decimal Bar() {
lock (new object() as string) {
if (true) {
checked {
unsafe {
try {
do {
return default(decimal);
unchecked {break;}
continue;
} while (false);
}
catch { throw; }
finally { }
}
}
}
}
}