コード例 #1
0
        static void Main(string[] args)
        {
            Location home = new Location(18.037986, 28.870097, Planet.Earth);
            Console.WriteLine(home);

            //Argument out of range exception
            Location notHome = new Location(-100.215123, 150.32100, Planet.Mercury);
            Console.WriteLine(notHome);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: KostaDinkov/SoftUni
 static void Main()
 {
     Location home = new Location(18.037986,28.870097,Planet.Earth);
     Console.WriteLine(home);
 }