public static List <ta> sortList(List <ta> unsortedList) { int i = 0, j = 1; int counter = 1; ta x = new ta("", 0, 0, 0, 0, 0); ta y = new ta("", 0, 0, 0, 0, 0); while (counter < unsortedList.Count()) { x = unsortedList[i]; y = unsortedList[j]; if (x.experiance < y.experiance) { Swap(ref x, ref y); i = 0; j = 1; counter = 1; } else { i++; j++; counter++; } } return(unsortedList); }
static void Main(string[] args) { int xeca = 100; // int opa,epa ; xeca = xeca >> 2; Console.WriteLine(xeca); ta vogais = ta.a; Console.WriteLine(vogais); ta ferro = (ta)3; Console.WriteLine(ferro); /* Console.WriteLine("Hello World!"); * * Console.Write("digite um numero: "); * opa = int.Parse(Console.ReadLine()); * Console.Write(opa*9); * * Console.Write("\ndigite um numero: "); * epa =Convert.ToInt32(Console.ReadLine()); * Console.WriteLine(epa*9); * * Console.WriteLine(epa-opa); * * xeca=xeca<<1; * Console.WriteLine(xeca); * * epa=epa>>1; * Console.WriteLine(epa); */ }
foreach (var(ta, tb, tc) in indices)
await Task.WhenAll(ta, tb).ConfigureAwait(false);