コード例 #1
0
        public static Distance CalculateDistanceTo(Address customer)
        {
            Distance result = new Distance(customer); // Some differetnt calculation that user address

            return(result);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Distance distance = CalculateDistanceTo(new Address());

            Console.WriteLine(distance);
        }