GetTypes() method

  • Thread starter belangour abdessamad
  • Start date
B

belangour abdessamad

Hi all,
Is there any way or a flag to force the GetTypes() method of a Module class
not to get nested types of a Type object ?
(Because a TYPE object has a method called GetNestedTypes() for retrieving
nested types)
Thanks in advance.
 
N

Nicholas Paldino [.NET/C# MVP]

belangour,

No, there is not. You will have to take the results and then cycle
through them, removing the ones from the set that are nested types.

Hope this helps.
 

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