By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,724 Members | 859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,724 IT Pros & Developers. It's quick & easy.

System.Reflection.Emit.TypeBuilder and GetCustomAttributes

P: n/a
Hi All,

I've been struggling for a way to retrieve custom attributes I have set
(SetCustomAttributes) on a class through a TypeBuilder but can't seem
to get around :

"NotSupportedException - This method is not currently supported for
incomplete types. Retrieve the type using GetType and call
GetCustomAttributes on the returned Type."

Questions this exception raises are:

1. What constitutes an incomplete type, how do I "complete" it, and
once completed, can I add more stuff to it?

2. Why do I still receive the NotSupportedException even after
following the instructions to "retrieve the type using GetType and call
GetCustomAttributes on the return Type."

Rein

Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.