Пример #1
0
        static void Main()
        {
            CalcDistanceClient calcDistanceClient = new CalcDistanceClient();
            double             distance           = calcDistanceClient.GetDistance(new Point()
            {
                X = 10, Y = 10
            }, new Point()
            {
                X = 15, Y = 15
            });

            Console.WriteLine(distance);
        }
        public static void Main()
        {
            var service = new CalcDistanceClient();
            var pointOne = new Point { X = 2, Y = 3 };
            var pointTwo = new Point { X = -2, Y = -3 };
            double distance = service.CalculateDistance(pointOne, pointTwo);

            Console.WriteLine(
                "Distance between p({0},{1}) & p({2},{3}) is {4}",
                pointOne.X,
                pointOne.Y,
                pointTwo.X,
                pointTwo.Y,
                distance);
        }
 static void Main()
 {
     CalcDistanceClient calcDistanceClient = new CalcDistanceClient();
     double distance = calcDistanceClient.GetDistance(new Point() { X = 10, Y = 10 }, new Point() { X = 15, Y = 15 });
     Console.WriteLine(distance);
 }