static Portal_() { _countries[0] = new England(); _countries[1] = new France(); _countries[2] = new Germany(); _countries[3] = new Spain(); _countries[4] = new Ukraine(); }
static void Main(string[] args) { Country one = new Country("Россия", 145_000_000); Russia two = new Russia(11288.87, "69"); Ukraine three = new Ukraine(443, "Киев"); //Country Console.WriteLine("Информация из класса Country:" + "\n"); Console.WriteLine("Название страны: " + one.Name); Console.WriteLine("Население: " + one.Population); one.ChangeCountryName("Украина"); one.ChangePopulationValue(42_000_000); Console.WriteLine(); Console.WriteLine("Название страны: " + one.Name); Console.WriteLine("Население: " + one.Population); Console.WriteLine(); one.PrintCountryInfo(); Console.WriteLine("///////////////////////////////////////"); //Russia Console.WriteLine("Информация из класса Russia:" + "\n"); Console.WriteLine("ВВП на душу населения: " + two.VVP); Console.WriteLine("Стоимость рубля: " + two.RubleValueToUSD); Console.WriteLine(); two.PrintRussiaInfo(); two.MakeNuclearStrike("Польша"); two.isChinaFriendToRussia(true); Console.WriteLine("///////////////////////////////////////"); //Ukraine Console.WriteLine("Информация из класса Ukraine:" + "\n"); Console.WriteLine("Количество городов Украины: " + three.NumberOfCities); Console.WriteLine("Столица Украины: " + three.Capital); Console.WriteLine(); three.MakeBuisness(500_367); Console.WriteLine(); three.ToStoleSomething("шоколад"); Console.WriteLine(); three.AreYouPresident(false); Console.WriteLine(); }
public Ukraine(Ukraine.Market m) : this(NQuantLibcPINVOKE.new_Ukraine__SWIG_0((int)m), true) { if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve(); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Ukraine obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Ukraine obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }