public static Distance CalculateDistanceTo(Address customer) { Distance result = new Distance(customer); // Some differetnt calculation that user address return(result); }
static void Main(string[] args) { Distance distance = CalculateDistanceTo(new Address()); Console.WriteLine(distance); }