Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get all namespaces in assembly

namespace test
{
    public class Class1
    {
        public string[] AllNameSpace()
        {
            return Assembly.GetExecutingAssembly().GetTypes().Select(x => x.Namespace).ToArray();
        }
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #namespaces #assembly
ADD COMMENT
Topic
Name
9+7 =