static string GetNamespace(){
return new
System.Diagnostics.StackTrace().GetFrame(0).GetMethod().DeclaringType.Namespace;
}
Try the above
Ciaran O'Donnell
> Hi there,
>
> I have a class with a static method, how can I find the namespace of the
> class from inside the method.
>
> TIA
Kevin - 20 Nov 2006 16:05 GMT
^_^
Works great, thanks Ciaran.
> static string GetNamespace(){
> return new
[quoted text clipped - 11 lines]
>>
>> TIA