static void Main(string[] args)
        {
            The3DHexagon h = new The3DHexagon();

            //  Resolve name clash ambiguity using full qualified name.
            Chapter14.My3DShapes.Circle c = new Chapter14.My3DShapes.Circle();
            Chapter14.My3DShapes.Square s = new Chapter14.My3DShapes.Square();
        }
Example #2
0
        static void Main(string[] args)
        {
            bfHome.BinaryFormatter b = new bfHome.BinaryFormatter();
            //  这是在创建My3DShapes.Hexagon类
            The3DHexagon h = new The3DHexagon();

            Chapter14.My3DShapes.Circle c = new Chapter14.My3DShapes.Circle();
            MyShapes.Square             s = new MyShapes.Square();
        }
Example #3
0
        static void Main(string[] args)
        {
            // для устранения неоднозначностей
            Chapter14.My3DShapes.Hexagon h = new Chapter14.My3DShapes.Hexagon();
            Chapter14.My3DShapes.Circle  с = new Chapter14.My3DShapes.Circle();
            MyShapes.Square s = new MyShapes.Square();

            // Это на самом деле создает экземпляр класс My3DShapes.Hexagon
            The3DHexagon h2 = new The3DHexagon();
        }
Example #4
0
        static void Main(string[] args)
        {
            Console.WriteLine("There is no output to show here....");
            Console.WriteLine("This project just illustrates how to package");
            Console.WriteLine("up custom types in namespaces.\n");
            /*
            Hexagon h = new Hexagon();
            Circle c = new Circle();
            Square s = new Square();
            */

            /*
            MyShapes.Hexagon h = new MyShapes.Hexagon();
            MyShapes.Circle c = new MyShapes.Circle();
            MyShapes.Square s = new MyShapes.Square();
            */

            threeD.Hexagon h = new threeD.Hexagon();
            threeD.Circle c = new threeD.Circle();
            MyShapes.Square s = new MyShapes.Square();

            bfHome.BinaryFormatter b = new bfHome.BinaryFormatter();
        }
Example #5
0
        static void Main(string[] args)
        {
            Console.WriteLine("There is no output to show here....");
            Console.WriteLine("This project just illustrates how to package");
            Console.WriteLine("up custom types in namespaces.\n");

            /*
             * Hexagon h = new Hexagon();
             * Circle c = new Circle();
             * Square s = new Square();
             */

            /*
             * MyShapes.Hexagon h = new MyShapes.Hexagon();
             * MyShapes.Circle c = new MyShapes.Circle();
             * MyShapes.Square s = new MyShapes.Square();
             */

            threeD.Hexagon  h = new threeD.Hexagon();
            threeD.Circle   c = new threeD.Circle();
            MyShapes.Square s = new MyShapes.Square();

            bfHome.BinaryFormatter b = new bfHome.BinaryFormatter();
        }