Classes defined in LinqPad are nested, inner classes of UserQuery. Is there a way to declare classes that are root classes?
From version 2.4 / 4.4, you can create root classes in LINQPad by defining the NONEST
symbol (in C# Program mode):
#define NONEST
void Main()
{
typeof (Foo).FullName.Dump(); // Foo
}
class Foo
{
}
If you define a static class (which C# does not allow fo be nested), you don't need the NONEST symbol - LINQPad will extract your nested class automatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With