private static void Main()
        {
            var rect = new Rectangle(5, 10, 12, 8);

            var location = new Point(0, 0);
            var dimensions = new Dimensions(1, 2);

            // Location and dimension are not pre-initialized!
            rect.GetLocationAndDimensions(out location, out dimensions);

            Console.WriteLine("({0}, {1}, {2}, {3})", location.x, location.y, dimensions.width, dimensions.height);
        }
        static void Main()
        {
            Rectangle rect = new Rectangle(5, 10, 12, 8);

            Point location;
            Dimensions dimensions;

            // Location and dimension are not pre-initialized!
            rect.GetLocationAndDimensions(out location, out dimensions);

            Console.WriteLine("({0}, {1}, {2}, {3})",
                location.x, location.y,
                dimensions.width, dimensions.height);
        }