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
 
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.
 
Back
Top