Full qualified type name

To reference a type in a namespace we use its full qualified name.


using System;
namespace A
{
    namespace B
    {
        namespace C
        {

            class MyClass
            {

            }
        }
    }
}

class Program
{
    static void Main(string[] args)
    {
        A.B.C.MyClass cls = new A.B.C.MyClass();
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.