public static void Main() { MyStruct msNew = new MyStruct(); msNew.Show(); msNew.xprop = 20; msNew.Show(); }
public static void Main() { MyStruct.Show(); MyStruct.x = 20; MyStruct.Show(); YourStruct ys; ys.y = 10; ys.Show(); }
static void Main(string[] args) { MyStruct <double> list = new MyStruct <double>(); list.Add(1.0); list.Add(4.5); list.Add(-76.6338); list.Add(-7); list.Add(0.000000000000001); foreach (var item in list) { Console.WriteLine(item); } list.RemoveAllElementsAfterTheMax(); list.Show(); Console.WriteLine(list.Average()); Console.WriteLine(list.SmallerThanAverageCount()); Console.ReadKey(); }