::token is used for namespace alias qualification. - CSharp Custom Type

CSharp examples for Custom Type:namespace

Introduction

In this example, we qualify using the global namespace

namespace N
{
  class A
  {
    static void Main()
    {
      System.Console.WriteLine (new A.B());
      System.Console.WriteLine (new global::A.B());
    }

    public class B {}
  }
}

namespace A
{
  class B {}
}

Related Tutorials