Esempio n. 1
0
        static void Main(string[] args) {
            MyShapes.Square s = new MyShapes.Square();
            TheSquare s2 = new TheSquare();

            bfHome.BinaryFormatter bf = new bfHome.BinaryFormatter();

            Rectangle r = new Rectangle();
        }
Esempio n. 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();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Chapter_14.My3DShapes.Hexagon h = new Chapter_14.My3DShapes.Hexagon();
            Chapter_14.My3DShapes.Circle c = new Chapter_14.My3DShapes.Circle();
            MyShapes.Square s = new MyShapes.Square();
            The3DHexagon h2 = new The3DHexagon();

            Console.ReadLine();
        }
Esempio n. 4
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();
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            RegularShape.Hexagon hex = new RegularShape.Hexagon();
            RegularShape.Circle  Cir = new RegularShape.Circle();
            RegularShape.Square  squ = new RegularShape.Square();

            ThreeDemensional.Hexagon hex2 = new ThreeDemensional.Hexagon();
            ThreeDemensional.Circle  cir2 = new ThreeDemensional.Circle();
            ThreeDemensional.Square  squ2 = new ThreeDemensional.Square();
        }
Esempio n. 6
0
        static void Main(string[] args)
        {
            Console.WriteLine("***** Fun with Namespaces *****\n");
            Console.WriteLine("See source code for details...");

            The3DHexagon h = new The3DHexagon();

            Chapter3.My3DShapes.Circle c = new Chapter3.My3DShapes.Circle();
            MyShapes.Square            s = new MyShapes.Square();

            MyAlias.BinaryFormatter b = new MyAlias.BinaryFormatter();
        }
Esempio n. 7
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();
        }
Esempio n. 8
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();
        }