System.Reflection.Emit and Namespaces

G

Gareth

Don't know if this is the place to ask but..

I am writing a compiler for .net as a way of learning about how
the .net languages and the CLR work and I am confused about how
references and namespaces work with the Emit namespace. I am trying
to parse the using and namespace keywords and I am not sure how these
are handled using the Emit classes.

When parsing things like expressions I can see from MSDN that I use
the ILGenerator to emit opcodes for load integer and add etc, but I
haven't found much material on there on how to deal with namespaces
and references/qualified names etc. There isn't anything like a
NamespaceBuilder to match the AssemblyBuilder class!!

Any pointers or useful links would be greatly appreciated!

Many thanks,
G
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top