I am writing a program which needs the namespace of the program but I cant seem to figure out how to retrieve it. I would like the end result to be in a string.
I wa
If you're executing it from a class in the namespace you need to capture then you can just use:
GetType().Namespace
This works nicely as it then allows you to refactor the namespace and will still work.