IronRuby and IronPython have custom built-ins, standard modules and you can write code straight out of hand(Directly using statements and declarations in the code), instead of using namespaces and classes like in C# and VB.NET.
I am trying to use CodeCompileUnit, but I can only find Namespaces
, AssemblyCustomAttributes
, StartDirectives
, EndDirectives
and ReferencedAssemblies
properties. No other stuff, not even classes(you can put classes without namespaces in C# and VB.NET).
I am trying to find a way to be able to add stuff like variable declaration, methods and expressions to the CodeCompileUnit instead of namespaces and directives only.
How can I achieve this?