Check out example codes for "c# get all namespaces in assembly". It will help you in understanding the concepts better.

Code Example 1

namespace test
{
    public class Class1
    {
        public string[] AllNameSpace()
        {
            return Assembly.GetExecutingAssembly().GetTypes().Select(x => x.Namespace).ToArray();
        }
    }
}

Learn ReactJs, React Native from akashmittal.com