private static void Main(string[] args) { var mc = new MyClass(); mc.MyMethod(); Console.WriteLine("Hello World!"); Console.ReadKey(); }
static void Main(string[] args) { List <int> array = new List <int>() { 15, 9, 8, 54, 45, 2, 67, 15, 68 }; MyClass MyObject = new MyClass(); MyObject.MyMethod(array); //if null ise deafult asc olsun //int[] dizim = new int[] { 3, 2, 5, 8 }; //var customer = new Customer(dizim); //int count = 0; //foreach (int element in customer.pcollection) //{ // count++; // Console.WriteLine($"Element #{count}: {element}"); //} //Console.ReadLine(); }