by nicobn · 10y ago · 0 comments
It doesn't matter whether the additional classes defined in the file are top level or not, they're still classes that can be used independently.
Let's just put it this way. Would a Java programmer, by way of normal operation, implement a project with a few Java files, each of which contains a type with several static types internal to it, and where those internal static types are in fact the main types of the program? If they wouldn't, then there is no equivalency, because this is something you see in C# code bases all the time.