static void Main(string[] args) { IOverloadingExample o = new OverloadingExample(); Console.WriteLine(o.toplam(1, 2)); Console.WriteLine(o.parcala("21.02.2019")); string[] cumleler = { "sefa.tuncer", "14.10.2019", "bilecik.üniversitesi" }; List <string> temp = o.parcala(cumleler); foreach (var item in temp) { Console.WriteLine(item); } }
static void Main(string[] args) { Point p1 = new Point(0, 0); Point p2 = new Point(10, 20); //Console.WriteLine(p2.x); //10 Point3D b = new Point3D(10, 20, 30); //Console.WriteLine(b.z); //30 Pair <int, string> pair = new Pair <int, string> { First = 1, Second = "two" }; int i = pair.First; string s = pair.Second; //Console.WriteLine(s); //two Color color = new Color(1, 2, 3); // Console.WriteLine(color.r ); //1 //Console.WriteLine(Color.Black.r); //1,0 //RefExample.SwapExample(); //2 1 //OutExample.OutUsage(); // 3 1 string sx = "x={0} y={1} z={2}"; object[] argsx = new object[3]; argsx[0] = 'x'; argsx[1] = 'y'; argsx[2] = 'z'; // Console.WriteLine(sx, argsx); x=x y=y z=z //EntityExample.Usage(); //1000 1001 1002 OverloadingExample.UsageExample(); }