reflection - how to get namespaces?

  • Thread starter Thread starter GiJeet
  • Start date Start date
G

GiJeet

is there a way using reflection to get the namespace of the current
class? Just the namespace...

TIA
G
 
GiJeet,

Assuming you are doing this in an instance member, you could do this:

this.GetType().Namespace
 
is there a way using reflection to get the namespace of the current
class?  Just the namespace...

TIA
G

this.GetType().Namespace
 
GiJeet,

    Assuming you are doing this in an instance member, you could do this:

this.GetType().Namespace

--
          - Nicholas Paldino [.NET/C# MVP]
          - (e-mail address removed)




is there a way using reflection to get the namespace of the current
class?  Just the namespace...
TIA
G- Hide quoted text -

- Show quoted text -

Thanks. tried to find it on google but couldn't.
 

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

Back
Top